Qt 6.11 is out! See what's new in the release
blog
Instantiator and new object's parent
-
Hello all!
I have this code in my app:
Window { // ... ListModel { id: listmodel } Shape { // ... Instantiator { model: listmodel delegate: ShapePath { // ... } } } // ... }The above code doesn't render the path when I append new item to
listmodel, it seems like theShapePathcreated byInstantiatorset it's parent to theInstantiatoritself while theShapeexpectsShapePathas direct children. Is there a way to controlparentof objects created byInstantiator?