How to remove checkbox when using qmenu's setCheckable option
-
@IknowQT said in How to remove checkbox when using qmenu's setCheckable option:
Can I use paint overriding in Qaction?
As already said more than once - QAction is no QWidget, you can't override it.
No, afaik you can't remove the checkbox when using QSS. Don't make it checkable and remember the check state by yourself somewhere else.
-
Hi,
Out curiosity, why do you want to remove that piece of information from your UI ?
-
@SGaist said in How to remove checkbox when using qmenu's setCheckable option:
궁금해서 UI에서 해당 정보를 제거하려는 이유는 무엇입니까?
Since the background can be changed in the check-in state without a check box, the check box does not grow, so I thought of it in a different way.
The size of the checkbox is too small to be seen in the field of view.
For that reason, I tried to remove the checkbox from the ui and change the button background color depending on the check state to make it easier to see at a glance.