Props in QCheckbox for custom icons #12232
-
|
I have a need to create a set of controls that look and behave in a very similar way, but need custom icons for checkbox-type controls, which will sit right next to a regular QCheckbox. Emulating the look and behaviour of QCheckbox from scratch isn't trivial, and it would be ideal if I were able to do something like: I think, apart from the additional props (with perhaps Alternatives I've considered are building all the components from scratch using QItem or QBtn, but the behaviour and look of QCheckbox is really what I'm after. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
I tried hacking this into QCheckbox, and it kind of demonstrates what I'm looking for, without any of the props (it just changes all checkboxes to stars) The sizing is wrong of course too, as I guess the svg takes care of that for regular checkboxes. |
Beta Was this translation helpful? Give feedback.
-
|
Implementing checked-icon, unchecked-icon, indeterminate-icon props for QCheckbox. |
Beta Was this translation helpful? Give feedback.

Implementing checked-icon, unchecked-icon, indeterminate-icon props for QCheckbox.
Follow: #12233