QML Canvas3D does not work with QQuickWidget or QQuickRenderControl
Hello, I've tried the examples http://doc.qt.io/qt-5/qtcanvas3d-textureandlight-example.html and https://doc.qt.io/qt-5/qtcanvas3d-quickitemtexture-example.html to understand Canvas3D in qml. However when I use the same code inside a QQuickWidget instead of a QQuickView there's a problem with the shaders : JS:Shader Compile failed so nothing is rendered besides the background color.
What is the problem there?
Edit: same problem happens when using QOffscreenSurface with QQuickRenderControl
I don't know what is the probleme but maybe you can add a QQuickView inside your QQuickWidget so ^^
QQuickView *_view = new QQuickView();
QWidget *_wgContainer = QWidget::createWindowContainer(_view, this);
Thanks, I did try createWindowContainer and it works fine but I was expecting that QQuickWidget would work too given that it's recommended before createWindowContainer. Also it seems like the same problem happens when using QOffscreenSurface with QQuickRenderControl for the same qml with canvas3d.