Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Create DelegateChooser from JavaScript dynamically. How?



  • 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?


Log in to reply