[Qt-interest] want to set a background image

chandrasekar wagmare sekarwagmare at gmail.com
Mon May 11 06:22:45 CEST 2009


consider w is your parent window ...
QPalette p = w.palette();
p.setBrush(QPalette::background, QPixmap("/wallpaper path"));
w.setPalette(p);

connect this function with all the pushbutton and change the background
image ....

On Mon, May 11, 2009 at 9:33 AM, Sai Chandra <Sai.Chandra at lntinfotech.com>wrote:

>
> hi all,
>        I want to set a back ground image on widget on clicking each button.
> How do I do it?
>
>
> Thank You
>
> Regards,
>
> Sai Chandra G.V,
> PES,
> L&T Infotech Ltd,
> Plot No 25-31,EPIP Phase II,
> KIADB Industrial Area,Whitefield,
> BANGALORE-66,INDIA
> Mobile:+91 9900200782
> Office: 080-66241296
>
> *
> Larsen & Toubro Infotech Ltd.**
> **www.Lntinfotech.com* <http://www.lntinfotech.com/>
>
> This Document is classified as:
>
> L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech
> Internal Use Only   L&T Infotech General Business
>
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do not
> use or disseminate the information, notify the sender and delete it from
> your system.
> ______________________________________________________________________
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090511/e4e306a4/attachment.html 


More information about the Qt-interest-old mailing list