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
QtWS25 Last Chance

Fill color in Qcheckbox

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 910 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.
  • R Offline
    R Offline
    rockon209
    wrote on 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
    0
    • R rockon209

      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 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 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
        0
        • R rockon209

          @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 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

          • Login

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