Finding what the stylesheet elements in a QCheckBox are
-
wrote on 10 Nov 2022, 08:59 last edited by
Hi. I am trying to change the stylesheet of a QCheckBox, and am having trouble understanding what the "indicator" element might be from the examples, so I went to the QCheckBox documentation, but was unable to find an element like that documented in the stylesheet context.
I am unsure where to find documentation that lists out the available stylesheet elements of a QCheckBox, as the stylesheet examples seem to be only examples, and not the full documentation. What would be a good starting poin for finding the stylesheet elements?
-
wrote on 10 Nov 2022, 09:23 last edited by SamurayH 11 Oct 2022, 09:23
The
::indicator
sub-control lets you customize the check 'icon' appearance of a QCheckBox and other widgets, for instance:Start by looking at the Qt Style Sheets Examples. And to have a deep understanding, you could check the Qt Style Sheets Reference.
-
The
::indicator
sub-control lets you customize the check 'icon' appearance of a QCheckBox and other widgets, for instance:Unchecked:
Checked:Start by looking at the Qt Style Sheets Examples. And to have a deep understanding, you could check the Qt Style Sheets Reference.
wrote on 10 Nov 2022, 09:32 last edited by@SamurayH The stylesheet full reference is what I'm looking for. Thanks!
-
Hi,
4/4