Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Add Entity to Scene3D Dynamically

Add Entity to Scene3D Dynamically

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qt3dscene3ddynamic
1 Posts 1 Posters 637 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qtMec
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved