-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.10.0
-
None
-
Tested Qt versions:
Linux (x86, 32bit): Qt 5.10.0, Qt 4.8.7
Windows (7, 64bit): Qt 5.2.1, Qt 4.8.5 (can't upgrade)
I noticed several issues with the fonts in my application(s) and finally tracked this down to the attached example code (after a long time !).
It looks like font inheritance gets broken by QWidget->show() under at least the following circumstances:
- application font set
- gui style set
- QWidget::show() called late
The attached example should be self-explaining and a good starting point.
I also assume that at least two bugs are involved (see comments).
Seems to occure on Linux + Qt5 only, Windows + Qt5 works fine and Qt4 also works fine on both platforms.