Solved How can i change padding for icon on QMenuBar::item
-
QMenu::item { min-height: 20px; background-color: #444444; color : white; border: 1px solid; border-color: #444444; padding-left: 25px; padding-right: 20px; font-size: 12px; font-weight: normal; }
-
Any solutions?
I can shift the text by padding-left. I also need to shift the icon. I try to search style sheet example, but no any cases. What i should to do?
-
@Craetor
hi, according to the QStyleSheet example the correct way to target the itcon should either beQMenu::icon
orQMenu::indicator
did you set any of those in your stylsheet? -
@J-Hilk
hi, thanks for example, it works:QMenu::icon { padding-left: 5px; }