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.
Hi,
I'd recommend checking out the bug report system to see if it's something known. If not then please consider opening a new report providing your sample application as well as system specification.
@Stefan-Monov76 said in What are those string "name" properties set to various objects in Qt Canvas3D code?:
I just don't know what the purpose of setting it is.
Me neither, sorry. The only thing that I gather from the docs is that all Canvas3D objects have name parameter, much like QObject/ QML QtObject, so perhaps it can be used to search objects by name. It's only a guess, though.
Unfortunately this is not possible in Qt 5.5, as the alpha values are ignored. This will be fixed to Qt 5.6, though, where you can make the Canvas3D background fully transparent for example by specifying gl.clearColor(0, 0, 0, 0).
@dante I doubt that it will work readily with QML. Javascript support in QML is very restricted as compared to that of Web-Browsers. It lacks of certain objects which are mostly used in these web-browsers supported Javascripts.
You can find more info here:
http://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.html
http://doc.qt.io/qt-5/qtqml-javascript-expressions.html
http://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.html#javascript-environment-restrictions
You will need to create you own port of it without those restrictions.
For eg. here is a blog post for porting-three-js-code-to-canvas3d. Something similar will be needed for the rest too.