Can I make the QCheckBox label clickable?
Solved
General and Desktop
-
wrote on 29 Oct 2015, 10:21 last edited by Jakob 12 Oct 2015, 15:30
Normally when creating a
QCheckBox
with a label, the label does not respond to clicks of the mouse.Is there a simple way to let the checkbox respond to clicks on the labels instead of only responding to clicks exactly on the checkbox itself?
-
wrote on 29 Oct 2015, 13:45 last edited by
Nevermind - in the end it turned out the label was modeled as a separate
QLabel
instead of thetext
of theQCheckBox
. Once I removed the label, and put the text inside the checkbox, I got exactly what I was asking for.
1/3