[SOLVED] Define states into separate QML file
QML and Qt Quick
2
Posts
1
Posters
529
Views
1
Watching
-
Meanwhile I found a solution by myself as follows:
main.qml
States { id: states } states: states.myStates
States.qml
Item { property list<State> myStates: [ State {}, State {}, State {} } }
Is this already the best way to achieve what I want or are there any better solutions?
Thanks and best regards,
Markus