[Qt-interest] Need to show a dialog on click of QLabel

Scott Aron Bloom Scott.Bloom at sabgroup.com
Thu May 14 16:19:21 CEST 2009


> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Arnold Krille
> Sent: Thursday, May 14, 2009 4:06 AM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Need to show a dialog on click of QLabel
> 
> On Thursday 14 May 2009 11:25:40 Kamakshi Sivaraman wrote:
> > I need to show a dialog on click of QLabel.
> > Please tell, how can I do that.
> 
> Use a button instead of a label. Something clickable is a button,
something
> just for display of text and/or graphic is a label. For the sake of
> userfriendlieness keep it that way. Otherwise you can't expect your
users to
> know that they should click the label. Unless you want them to click
on all
> labels and complain that for most of them nothing happens...
> 
> Arnold

+1... Unless you are re-implementing all the styles of the label
necessary to give you the proper look and feel.. labels should not be
clickable

Scott




More information about the Qt-interest-old mailing list