PDA

View Full Version : viewing jpeg-pictures on widgets



Yorma
19th January 2006, 16:44
Can I view small jpeg-pictures straight to QWidget, or do I have to use something like QCanvas or any other method? I would like to have my program showing pictures pointing to key functionalities, like setting software configuration etc. So for example if I press a button besides a picture of pen on my widget, I'll have access to memo.

fullmetalcoder
19th January 2006, 16:49
use QPixmap or QImage, QLabel may work as well.

Yorma
19th January 2006, 17:32
use QPixmap or QImage, QLabel may work as well.
Thanks, I succesfully set a picture on label:

setPixmap(QPixmap("jpg/picture.jpg"));