[Qt-interest] How to set text and icon in an overlaid fashion to a QPushButton

Santhosh Y santhosh at softjin.com
Wed Apr 28 14:36:30 CEST 2010


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.
___________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pushButton_icon and text overlaid.JPG
Type: image/jpeg
Size: 1885 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100428/bb36a171/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: push-button-text and icon not overlapping.JPG
Type: image/jpeg
Size: 1654 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100428/bb36a171/attachment-0001.jpe 


More information about the Qt-interest-old mailing list