QML listview
-
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 nameThanks for the help :)
-
Sure. There are lots of demos doing just that.
-
Can u give me any link which has that demo?
I kind of could not get any -
Take a look at this example. It might help you.
http://doc.troll.no/master-snapshot/declarative-cppextensions-imageprovider.html
-
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/ -
I have used a javascript for this issue which actually looked easier to me :)
Thanks for all the help