[Qt-interest] Calling a slot when clicking on label

Arnold Krille arnold at arnoldarts.de
Thu Aug 5 01:20:36 CEST 2010


Hi,

On Wednesday 04 August 2010 14:44:03 Nishant Sharma wrote:
> I want to call a slot/function when I click on a QLabel.
> Please suggest how to do that.

A label is something to display stuff. It is not something for clicking. If you 
want something that is clickable, _please_ use a button or something like 
that. Otherwise you will teach your users to not only click on all clickable 
things but also on all labels/texts "just because something might happen 
there".

> I am using qt version- 3.3.6

And please, please, please upgrade to qt4. Its about half a decade that qt3 
stopped being supported.

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100805/66e3f7bd/attachment.bin 


More information about the Qt-interest-old mailing list