From: StillLifeWood@... Date: 2005-01-26T15:40:48+09:00 Subject: Re: jpegs with qt and ruby 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