QDockWidget ::Title Stylesheet works in Designer but not in runtime
Solved
General and Desktop
-
The picture shows my problem, the title from a QDockWidget is different at runtime. I use qt 5.11.2, Win10 x64 is used. Any ideas? Thanks!
QDockWidget { color: blue; font-size: 20pt; font-family: "Bauhaus 93"} QDockWidget::Title { background: yellow; text-align: center; }
-
Hi
I can see the image.
I tried your stylesheet in clean project. ( applied on the mainwindow)
Maybe you have other stylesheet targeting widget with font setting that override for
DockWidget also?