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. QML listview
Qt 6.11 is out! See what's new in the release blog

QML listview

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 4 Posters 4.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.
  • A Offline
    A Offline
    Arifa
    wrote on last edited by
    #1

    Can we assign different images to a list in list view ?
    Like I want to display a list of files with image and text.
    For a pdf file an icon and the name
    For a text file a diff icon and its name

    Thanks for the help :)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Sure. There are lots of demos doing just that.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Arifa
        wrote on last edited by
        #3

        Can u give me any link which has that demo?
        I kind of could not get any

        1 Reply Last reply
        0
        • B Offline
          B Offline
          borut123
          wrote on last edited by
          #4

          Take a look at this example. It might help you.

          http://doc.troll.no/master-snapshot/declarative-cppextensions-imageprovider.html

          1 Reply Last reply
          0
          • B Offline
            B Offline
            blam
            wrote on last edited by
            #5

            Here's an example of showing the images and file names in a directory, using the FolderListModel element:
            http://developer.qt.nokia.com/forums/viewthread/3460/

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Arifa
              wrote on last edited by
              #6

              I have used a javascript for this issue which actually looked easier to me :)
              Thanks for all the help

              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