Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Finding what the stylesheet elements in a QCheckBox are

Finding what the stylesheet elements in a QCheckBox are

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Dummie1138D Offline
    Dummie1138D Offline
    Dummie1138
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SamurayHS Offline
      SamurayHS Offline
      SamurayH
      wrote on last edited by SamurayH
      #2

      The ::indicator sub-control lets you customize the check 'icon' appearance of a QCheckBox and other widgets, for instance:

      Unchecked: checkbox-unchecked.png
      Checked: checkbox-checked.png

      Start by looking at the Qt Style Sheets Examples. And to have a deep understanding, you could check the Qt Style Sheets Reference.

      "قال رسول الله صلى الله عليه وسلم : " أحب الناس إلى الله أنفعهم للناس

      Dummie1138D 1 Reply Last reply
      1
      • SamurayHS SamurayH

        The ::indicator sub-control lets you customize the check 'icon' appearance of a QCheckBox and other widgets, for instance:

        Unchecked: checkbox-unchecked.png
        Checked: checkbox-checked.png

        Start by looking at the Qt Style Sheets Examples. And to have a deep understanding, you could check the Qt Style Sheets Reference.

        Dummie1138D Offline
        Dummie1138D Offline
        Dummie1138
        wrote on last edited by
        #3

        @SamurayH The stylesheet full reference is what I'm looking for. Thanks!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          It's in the stylesheet examples.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved