How do I create multiple Dynamic Objects that have some kind of indexed id?
Unsolved
QML and Qt Quick
-
So what I want to do is create enemy space ships in an index based way so that I can destroy one of them and when I try to access properties I am not dealing with things that no longer exist.
-
Simply use a QList<QObject*> or QVariantList, depending on your space ship backend implementation.
If you want a QML-only solution, for some reason - you can parent all your space ships under a single
Item
and then access them usingitem.children
.