Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Dynamically add objects in a qt3d scene.
Forum Updated to NodeBB v4.3 + New Features

Dynamically add objects in a qt3d scene.

Scheduled Pinned Locked Moved Unsolved Game Development
2 Posts 2 Posters 1.1k 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.
  • L Offline
    L Offline
    Lefteris_Ts
    wrote on last edited by
    #1

    I would like to ask if it is possible to dynammically add a QEntity in the scene after
    the scene is created.
    I have created a function that draws lines and everything is drawn as expected
    when the scene is created (createWindowContainer). After that i can delete my model
    consisted of lines, but when i create new lines they are not drawn.
    Does anyone have an idea of how can this be fixed? Thanks in advance.

    1 Reply Last reply
    0
    • DabullaD Offline
      DabullaD Offline
      Dabulla
      wrote on last edited by
      #2

      You can instantiate new Entities with NodeInstantiator after the Scene is created. https://doc.qt.io/qt-5/qml-qt3d-core-nodeinstantiator.html

      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