Important: Please read the Qt Code of Conduct -

Add Entity to Scene3D Dynamically

  • Re: Dynamically add Entity to 3d scene

    I'm trying to create then add an Entity to a Scene3D in QML. I used the code referenced above but get the error message "QQmlComponent: Created graphical object was not placed in the graphics scene." when I try to add it using:

        var component = Qt.createComponent ("Marker.qml");
        if (component.status == Component.Ready) {
            var marker = component.createObject (iScene);

    where iScene is the id of my Scene3D QML type.

    Does anybody have an idea why this is not working and how to fix it?