[Qt-interest] Not use label portion of QCheckbox to activate the checkbox

Michael Jackson imikejackson at gmail.com
Wed Feb 15 16:18:09 CET 2012


Is there a property that can be set for QCheckboxes to ensure that a user MUST specifically click on the checkbox part and NOT the title of a QCheckbox.
  The issue I ran into is the use of a QGroupBox with a Checkable Title. When the user is simply selecting the QGroupBox but unknowingly clicks on a part of the title, in my case, the QGroupBox is deleted. I currently use a custom Style sheet for the group box which may or may not add more complexity to the issue.
  Or should I subclass QGroupBox, or QFrame for that matter, and re-implement where the Checkbox/button are separate from the title.

  Thanks for any suggestions.
___
Mike Jackson 





More information about the Qt-interest-old mailing list