displaying a picture in a QDataTable. It is possible?
![](https://seccdn.libravatar.org/avatar/6e6efed6db65218e904e06f0f2da58b5.jpg?s=120&d=mm&r=g)
Dear my friends... I use SuSE9.1, Qt.3.2 and postgres 7.2.x. I want to display a picture which stored in the postgres. my program take the picture from the postgres with lo_import() and export it into a read&writeable directory with lo_export(). But what confuse me is, how can I display an image in QDataTable? I also have another question: How can I make my QDataTable has multiline for each of its row as the width of its column fixed. somewhat like this: ========================================= |salesid|Message |here is a photo| ========================================= | 1 |it's never too | [image file]| | |late to start s| | | |omething better| | ========================================= I have seen the QDataTable documentation on my book and "dox.trolltech.com" but I found no clue. Thank you very much in advance. __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
![](https://seccdn.libravatar.org/avatar/b0fb3cb4f105fabee3f41799f791afbf.jpg?s=120&d=mm&r=g)
On Wednesday 01 September 2004 15:53, Prabu Subroto wrote:
Dear my friends...
I use SuSE9.1, Qt.3.2 and postgres 7.2.x.
I want to display a picture which stored in the postgres. my program take the picture from the postgres with lo_import() and export it into a read&writeable directory with lo_export().
But what confuse me is, how can I display an image in QDataTable?
You probably have to reimplement QDataTable::paintField(). It is easy to draw a QPixmap on a QPainter, so it should be possible to draw an image in the table. best, Jeroen
participants (2)
-
Jeroen Wijnhout
-
Prabu Subroto