Mailinglist Archive: opensuse-programming (148 mails)
| < Previous | Next > |
Re: [suse-programming-e] displaying a picture in a QDataTable. It is possible?
- From: Jeroen Wijnhout <wijnhout@xxxxxxxxxxxxxx>
- Date: Wed, 1 Sep 2004 16:00:20 +0200
- Message-id: <200409011600.20846.wijnhout@xxxxxxxxxxxxxx>
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
> 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
| < Previous | Next > |