Hi there,
I have a class with a list of objects. The objects can be edited in my designer plugin. For instance, a list with integer values:
Now I declare this list as a property:
Qt Code:
Q_PROPERTY(QList<int> intList READ intList WRITE setIntList DESIGNABLE true)To copy to clipboard, switch view to plain text mode
But even if I change the properties at design time, the values get never stored in the ui file. Does anyone know a solution to this?
Also, I have more complex data types of form QList<SomeClass> and also want to store this data in the ui file? Do I have to overload some xml generating functions or how does the designer know how to convert the object data into proper XML code for the ui file?
Bye
Bookmarks