QMenu tearoff - hover css not working
Unsolved
General and Desktop
-
wrote on 18 Jan 2022, 11:55 last edited by
Hey
Any idea why this would not work?
QMenu::tearoff:hover { margin-top:6px; padding-top:3px; color : red; border: 20px dashed rgb(200,200,200); }
Tia
-
Hi,
Can you show how exactly you are setting your stylesheet ?
Which version of Qt are you using ?
On which platform ? -
wrote on 19 Jan 2022, 11:05 last edited by
Qt 6.1+
Win10x64
QApplication::setStyleSheet(file.readAll());
I set it on an app.
Also half of my fonts dont respect my QApplicationFont either.
MenuBar ignores it + some other widgets. Bit of a hit and miss in general. -
Depending on how your wrote your stylesheet it will take precedence on the rest of your changes.
1/4