next up previous contents index
Next: QDrawWidget Up: Programming Previous: QIconView   Contents   Index


QImageWidget

QImageWidget is inserted in Qt Designer as Frame. Set the backgroundPixmap property of the Frame to your image. Also set the "whats_this" property of the Frame to the filename of the image. If your image has a different size than the Frame it will be resized. You may use any image format that is supported by Qt. PNG images may be transparent. JPG images may not be transparent. Only BMP images are a little bit special. You can only use 8 bit per pixel BMP files with a look up table (indexed). A color of red=1 green=1 blue=1 will be treated as transparent. Clicking an image results in a BUTTON_EVENT.



Rainer Lehrig 2004-02-17