Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Different delegates for a listview
Forum Updated to NodeBB v4.3 + New Features

Different delegates for a listview

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    daljit97
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SteveKing
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daljit97
        wrote on last edited by
        #3

        Thanks for help. The first idea looks promising.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved