[Qt-interest] -- How do I put Image on the button
chandrasekar wagmare
sekarwagmare at gmail.com
Tue May 5 08:28:35 CEST 2009
use this code ....
pushButton = new QPushButton(this);
QPixmap pixmap("file.png");
pushButton->setIcon(QIcon(
>
> pixmap));
> pushButton->setIconSize(pixmap.size());
On Tue, May 5, 2009 at 9:22 AM, Keshava Krishna
<keshavkrishna88 at gmail.com>wrote:
> resizing can be done with resize(); function...
>
>
>
> On Tue, May 5, 2009 at 9:20 AM, Keshava Krishna <keshavkrishna88 at gmail.com
> > wrote:
>
>> Do you mean button icons???
>> u can put them by
>> yourButton->setIcon(QIcon(QString::fromUtf8("icon_path")));
>>
>>
>>
>> On Tue, May 5, 2009 at 8:50 AM, Sai Chandra <Sai.Chandra at lntinfotech.com>wrote:
>>
>>>
>>> hi ,
>>> In my mobile application, I need to put an image on the button and
>>> resize the button. May I know how both of these dare achieved???
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>> Regards,
>> Keshava.
>>
>
>
>
> --
> Regards,
> Keshava.
>
> _______________________________________________
> 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/20090505/7794026d/attachment.html
More information about the Qt-interest-old
mailing list