Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Normally when creating a QCheckBox with a label, the label does not respond to clicks of the mouse.
QCheckBox
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?
hI @Jakob
Have you tried to create an inherited class from QCheckbox, and reimplement the mousePressEvent() Virtual Function?
Nevermind - in the end it turned out the label was modeled as a separate QLabel instead of the text of the QCheckBox. Once I removed the label, and put the text inside the checkbox, I got exactly what I was asking for.
QLabel
text