[Qt-interest] click method for Qlabel
Arnold Krille
arnold at arnoldarts.de
Mon Aug 31 09:44:34 CEST 2009
Hi,
On Monday 31 August 2009 09:38:40 Yuvaraj R wrote:
> I am having problem with setting the icons for Pushbuttons..That why i am
> moving for QLabel.
> buttons don't have the scaled contents property. if i want to set one
> circular icons for buttons..it is going to sit in middle..
Just for the painting???
Your widget is still a button. Derive from QAbstractButton then instead of
using QLabel. That gives you all the buttons logic at free. (No need to catch
key-presses and mouse-clicks yourself.)
Have fun,
Arnold
PS: No need to CC me, I am subscribed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090831/0c2776dc/attachment.bin
More information about the Qt-interest-old
mailing list