Title: Is It possible to add Backgroung image to form we use for design,using qt creator designer ....
Override the  paintEvent function and do:

QWidget::paintEvent(event);
QPainter pPainter(this);

pPainter.drawImage(rect(),  background_pixmap); //background_pixmap is a QPixmap.


Eirik




Ladnar, Marc skrev:
Hi,
 
I would suggest you to have a look into the stylesheet documentation of QWidget.
 
Have a nice day,
 
Marc Ladnar


   Von: Gaurav Purohit [mailto:[email protected]]
Gesendet: Donnerstag, 24. September 2009 07:19
An: [email protected]
Betreff: [Qt-creator] Is It possible to add Backgroung image to form we use for design, using qt creator designer ....


hi
         to make more stylish look can we add any background image to complete form on which we are designing our push button or any widget
         if possible how can u tell me steps


 REGARDS



GAURAV PUROHIT







______________________________________________________________________
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.
_____________________________________________________________________


_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator


_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to