Mailinglist Archive: opensuse-programming (84 mails)
| < Previous | Next > |
Re: [suse-programming-e] How to display binary data in bmp formart
- From: Jeroen Wijnhout <wijnhout@xxxxxxxxxxxxxx>
- Date: Mon, 30 Aug 2004 11:34:10 +0200
- Message-id: <200408301134.10352.wijnhout@xxxxxxxxxxxxxx>
On Monday 30 August 2004 11:27, j d wrote:
> > By the same person? Did you try QImage, why doesn't
> > it work?
>
> thank u, i got it, but now the problem is the image is
> not sticky. can you tell me how to make it sticky to
> the frame where i am displaying the image?
Sticky? You mean it is displayed once, and then is disappears (after a
redraw)? There are several ways:
Use QPixmap::convertFromImage(QImage) to make a Pixmap out of the QImage
object. Then use a QLabel to display the image permanently, or reimplement
QWidget::paintEvent() and draw the image on every paint event.
best,
Jeroen
> > By the same person? Did you try QImage, why doesn't
> > it work?
>
> thank u, i got it, but now the problem is the image is
> not sticky. can you tell me how to make it sticky to
> the frame where i am displaying the image?
Sticky? You mean it is displayed once, and then is disappears (after a
redraw)? There are several ways:
Use QPixmap::convertFromImage(QImage) to make a Pixmap out of the QImage
object. Then use a QLabel to display the image permanently, or reimplement
QWidget::paintEvent() and draw the image on every paint event.
best,
Jeroen
| < Previous | Next > |