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

Different delegates for a listview



  • hello guys,
    I want to make a Qml listview with different delegates(as in windows 8 for example) with different shapes. Is this possible in qml? thanks for helping.



  • Yes, two ways that I can think of are:

    1. Have a conditional in the "delegate:" of the list view to allow it to select there.
    2. A single delegate, but this then uses a loader to pull in the correct component

    Hope this helps



  • Thanks for help. The first idea looks promising.


Log in to reply