PDA

View Full Version : setting an image.jpg in a QWidget



impeteperry
6th February 2009, 19:06
Hi, I'm running Ubuntu.8.10. and Qt-4.4.

I have a QWidget and I want to display a "jpg" in it.
I don't want to do anything with the image It is just for the program user's information.

The program I'm writing has no out put to the QWidget. There are no graphic functions.

I just want a simple commaned to place the image in the window.

Thanks

jpn
6th February 2009, 20:00
Replace QWidget with QLabel and use QLabel::setPixmap().