View Full Version : Add pictures to tableview
Goof
9th January 2011, 21:56
Hello,
how could I add pictures to a tableview? I would like to add it to this program
http://3adly.blogspot.com/2010/07/sqlite-3qt-and-sqlite.html
The pictures should be stored in a directory.
Thank you for you help
Goof
ChrisW67
9th January 2011, 23:04
You can get an icon in the table view by having the model return a valid QIcon/QPixmap for the Qt::DecorationRole of the cells. You will need to customise a model to do this. If you want the entire table view cell to be an image then you will also need to provide a QStyledItemDelegate for the column to override how the table view item is drawn.
Goof
11th January 2011, 21:58
Please could you give me an example for this:
picture.jpg | text |text1 |text2
Thank you very much
ChrisW67
12th January 2011, 04:21
Some one else perhaps.... I'm more concerned with the flood crisis in my corner of the world.
http://www.abc.net.au/news/stories/2011/01/12/3111075.htm
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.