[Qt-interest] Need to show a dialog on click of QLabel (Scott Aron Bloom)
Dennis Kehrig
mail at denniskehrig.de
Thu May 14 17:08:43 CEST 2009
> 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...
Coming from a web background, I just had to think about this case:
<label for="textField">Name</label>
<input id="textField" type="text" />
If you click this label, the text field is focused. I was a bit
surprised that calling label.setBuddy(textField) does not trigger the
same behavior, although it is definitely more needed in HTML for
checkboxes, which Qt already covers by combining a checkbox and its
label into QCheckBox.
Alright, move along, nothing to see here!
Dennis
More information about the Qt-interest-old
mailing list