[Qt-interest] How to set text and icon in an overlaid fashion to a QPushButton
Ramesh
ramesh.bs at robosoftin.com
Wed Apr 28 15:03:09 CEST 2010
Subclass the Qpushbutton, override the paint event of push button..
There u draw the text at desired location
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Santhosh Y
Sent: Wednesday, April 28, 2010 6:07 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] How to set text and icon in an overlaid fashion to a
QPushButton
Hi,
I have a simple query:
For a QPushButton I have added an icon and while trying to set the text, it
is not shown on top of the icon instead it is showing right to the icon.
I am using Qt-designer
Thing I am trying is, for a QPushButton I want to set an icon as background
and on top of it I want to write/set text to it (In a overlaid fashion)
Please find the attached 2-images with the mail
--
----------------------------------------------------
Y Santhosh Kumar -
Senior Software Engineer,
SoftJin Technologies Pvt Ltd,
www.softjin.com
----------------------------------------------------
Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for the use of the individual or entity to which they are addressed.
It may contain confidential, proprietary or legally privileged
information.
If you are not the intended recipient please be advised that you have
received this message in error and any use is strictly prohibited. Please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender by return mail. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient.
___________________________________________________________
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
More information about the Qt-interest-old
mailing list