I have a QMenuBar
with for example two QMenu
items.
How can I only make the "Floors" item be blue, for example? I know how to change it for ALL the items with:
QMenuBar::item {
background: ...;
}
But I can't find a way to color a specific item. I tried to use setProperty
on Qmenu
, I tried with setPalette
,... I just find nothing working. Is there a way to set a specific QMenuBar::item
property in C++ code?