[Qt-interest] -- How do I put Image on the button
Sai Chandra
Sai.Chandra at lntinfotech.com
Tue May 5 10:55:43 CEST 2009
thanks a lot one and all now I am able to convert buttons to icons.....
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
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.
chandrasekar wagmare <sekarwagmare at gmail.com>
Sent by: qt-interest-bounces at trolltech.com
05/05/2009 11:58 AM
To
"qt-interest at trolltech.com" <qt-interest at trolltech.com>
cc
Subject
Re: [Qt-interest] -- How do I put Image on the button
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
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
______________________________________________________________________
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090505/a9e82f78/attachment.html
More information about the Qt-interest-old
mailing list