Fill color in Qcheckbox
-
wrote on 21 Apr 2017, 12:47 last edited by
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 -
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 advancewrote on 21 Apr 2017, 13:06 last edited byYou should have a look to QAbstractButton and use a QIcon with different pixmaps for different states.
-
@koahnig
these pixmaps are already there or I have to create it in paint or something like thatwrote on 21 Apr 2017, 13:30 last edited byIt 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.
1/4