Hi, the runtime creation of an Entity is not possible anymore (it was at some point during the Qt3D development)
Basically the classic way to create an item does nothing:
var component = Qt.createComponent("qrc:/MyEntity.qml");
var meshObj = component.createObject(parent, { });
Attached a modified version of the "controls" example to reproduce the issue.
Hope it helps
For Gerrit Dashboard: QTBUG-47055 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
159851,3 | Add hook to set QNode parent when creating a QNode in QML | 5.7.0 | qt/qt3d | Status: MERGED | +2 | 0 |