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
-
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.