Nominate our 2022 Qt Champions!

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