Details
Description
it seems both modules register the same names with QML:
Qt 3D:
qmlRegisterExtendedType<Qt3D::QTexture3D,
Qt3D::Render::Quick::Quick3DTextureExtension>(uri, 2, 0, "Texture3D");
qmlRegisterType<Qt3D::QTextureImage>(uri, 2, 0, "TextureImage")
Q_PROPERTY(QUrl source ..
Qt Canvas 3D:
qmlRegisterUncreatableType<CanvasTexture>(uri, 1 0, "Texture3D",
qmlRegisterUncreatableType<CanvasTextureImage>(uri, 1, 0,
"TextureImage",
Q_PROPERTY(QUrl src ....
These can be confusing as they appear also in the generated documentation. Canvas3D objects are non-creatable so those can be changed easily without breaking API compatibility.
Attachments
For Gerrit Dashboard: QTBUG-46105 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
112536,2 | Fix QML type naming to avoid clashes with Qt 3D and other modules | 5.5 | qt/qtcanvas3d | Status: MERGED | +2 | 0 |