Create multiple instances of qml object
Hello,
In my programm, the user can create Objects in the GUI during runtime, which are created from a QML file with a javascript.
After creation the user can change the properties of this qml object, like size, position, color etc..
My target is now, to store these changed properties and the QML Objects, so they are automatically recreated after programm start.
Any ideas how to solve this?
regards
Re: Create multiple instances of qml object
Instead of creating these objects in JavaScript you create a model that contains each item's data.
Then use for example a Repeater to create the items visually.
The model can then save and load its state anytime you'd like.
Cheers,
_