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

Optgroup from html equivalent in qml



  • Is there an equivalent for optgroup in qml?
    Can I do something like this
    @<select>
    <optgroup label="group1">
    <option value="1">1</option>
    </optgroup>
    <optgroup label="group2">
    <option value="2">2</option>
    </optgroup>
    </select>@
    or do I have to re-implement this functionality? I tried enabled: false on list elements, but this does not work. Can anyone point me the best direction to solving this problem? Thanks in advance.


Log in to reply