[Solved] Position of check mark on checkable QAction
-
I have an issue where all my checkable QActions on the Menu Bar have the check mark directly on top of the text. This was fine until just recently when I made some changes to the stylesheet of t he QMainWindow.
I have tried changing QCheckbox spacing, margins and padding with no success.
Does anyone know where the checkable QActions get their styling from?
-
I solved my issue with the check mark on top of the text.
I added the following property to the stylesheet:
QMenu::item { padding: 2px 25px 2 px 25px; }
Where the padding appears to be just for the text in the order top/right/bottom/left. The last 25px is the space between the checkmark and the text.