StillLifeWood
1/26/2005 6:40:00 AM
Thanks guys QPixmap/Qlabel is the answer, worked first time.
Richard Dale wrote:
> StillLifeWood@aol.com wrote:
>
> > Hi, does anyone have a simple example of putting a jpeg image on a
form
> > using QImage in Qt.
> I think you'd use Qt::Pixmap/QPixmap and a Qt::Label for that, rather
than
> Qt::Image, eg:
>
> blankPM = Qt::Pixmap.new("rbtestimage.jpeg")
> pmLbl = Qt::Label.new("", nil)
> pmLbl.pixmap = blankPM
>
> Qt::Images are for when you actually want to manipulate the image,
and
> Qt::Pixmaps are for displaying them.
>
> -- Richard