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. Fill color in Qcheckbox
Forum Update on Tuesday, May 27th 2025

Fill color in Qcheckbox

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 919 Views 2 Watching
  • 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.
  • R Offline
    R Offline
    rockon209
    wrote on 21 Apr 2017, 12:47 last edited by
    #1

    Hello Everyone,

    Is it possible to fill color in Qcheckbox instead of tick.
    If not, is there any class where i can have same function that of QCheckbox but can fill diffrent color.
    Thanks in advance

    K 1 Reply Last reply 21 Apr 2017, 13:06
    0
    • R rockon209
      21 Apr 2017, 12:47

      Hello Everyone,

      Is it possible to fill color in Qcheckbox instead of tick.
      If not, is there any class where i can have same function that of QCheckbox but can fill diffrent color.
      Thanks in advance

      K Offline
      K Offline
      koahnig
      wrote on 21 Apr 2017, 13:06 last edited by
      #2

      @rockon209

      You should have a look to QAbstractButton and use a QIcon with different pixmaps for different states.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rockon209
        wrote on 21 Apr 2017, 13:12 last edited by
        #3

        @koahnig
        these pixmaps are already there or I have to create it in paint or something like that

        K 1 Reply Last reply 21 Apr 2017, 13:30
        0
        • R rockon209
          21 Apr 2017, 13:12

          @koahnig
          these pixmaps are already there or I have to create it in paint or something like that

          K Offline
          K Offline
          koahnig
          wrote on 21 Apr 2017, 13:30 last edited by
          #4

          @rockon209

          It basically depends what you are up to. You want to change the only the color of an area, you can generate the pixmaps yourself. You can also use icons from a library you find on internet.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          1/4

          21 Apr 2017, 12:47

          • Login

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