Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.13, 6.6.1
-
None
Description
After updating to Qt 5.13 I can not properly use the fonts I added with QApplication::addApplicationFont anymore. Though the return value of QApplication::addApplicationFont is greater than -1 and I can query the family just fine.
In the project we use a qss stylesheet and set a font-family:
QWidget { font-family: Some-cool other font, Arial; }
and it would now use "Some-cool other font" after starting the application and using setStyleSheet.
Now in Qt 5.13 it falls back to Arial in this case.
But if I remove the fallback to Arial then I will see the proper font loaded (I at least think it is).
Also worth noting:
We add multiple font files using addApplicationFont which also might share the same family.