PDA

View Full Version : Removing QEntity from scene via "setParent(null)"



bjoernvand
11th July 2018, 18:45
Hey Guys,
I am trying to build a display systems where users can register their entity trees which are then displayed in one window.
I came across a problem when trying to remove the entities: While the Qt documentation says that one should use


removalCandidate->setParent((QEntity*) nullptr);

for this, it seems to break smth. in the backend.
When I try to add smth. again (after removing one or more entities), the backend silently crashes.

Does anybody have an idea why or tips for me on how to manage dynamic entity-tree buildling ?

Thx in advance, Björn :)