Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Dynamically add objects in a qt3d scene.
Lefteris_Ts last edited by
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.
Dabulla last edited by
You can instantiate new Entities with NodeInstantiator after the Scene is created. https://doc.qt.io/qt-5/qml-qt3d-core-nodeinstantiator.html