Solved QDockWidget ::Title Stylesheet works in Designer but not in runtime
-
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; }
-
It´s working with 5.12.4 -> so this was a bug in 5.11.2!
Thanks for testing! -
@mp81 Hi and welcome!
I can't see the picture.
Can you show how you're setting stylesheet at runtime? -
Hi, the stylesheet is not set at runtime, it is done in the Designer. I tried to set it at runtime too, no success.
I uploaded the image directly, it is visible for me?Thanks !
-
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? -
It´s working with 5.12.4 -> so this was a bug in 5.11.2!
Thanks for testing!