[Qt-interest] want to put an image on label

chandrasekar wagmare sekarwagmare at gmail.com
Tue May 12 07:25:08 CEST 2009


QLabel *label = new QLabel();
QPixmap pixmap(".. path of the pixmap ..");
label->setPixmpa(pixmap);
label->setScaledContents(true);   //this function is to fit the entire label
with your picture ..

On Tue, May 12, 2009 at 10:32 AM, Sai Chandra
<Sai.Chandra at lntinfotech.com>wrote:

>
> In my application I want to upload an image on the label. May I get some
> suggestions on how do I go about 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/20090512/ff1afdee/attachment.html 


More information about the Qt-interest-old mailing list