Unsolved Dynamically add objects in a qt3d scene.
-
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. -
You can instantiate new Entities with NodeInstantiator after the Scene is created. https://doc.qt.io/qt-5/qml-qt3d-core-nodeinstantiator.html