Create DelegateChooser from JavaScript dynamically. How?
Moved
Unsolved
QML and Qt Quick
-
Hello all!
I know how to create DelegateChooser manually. Something like this:DelegateChooser { id: chooser role: "type" DelegateChoice { roleValue: "info"; ItemDelegate { ... } } DelegateChoice { roleValue: "switch"; SwitchDelegate { ... } } DelegateChoice { roleValue: "swipe"; SwipeDelegate { ... } } }
The question - How to create it correctly from JavaScript where DelegateChoice is creating dynamically?