Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Get "real" Font
-
Hi
Please can anyone tell me how i get the real font family name.When i do somethink like:
// Non existing Font-Family "Test"
QFont test("Test");
QApplication::setFont(test);QFont systemFont = QApplication::font();
The ApplicationFont will change to anythink but
systemFont.family() will give me "Test"
How can i get the real Family Name?
thx Chris
-
@ckvsoft
Is this what you are looking for? QFontInfo::family()
-
Hi
Nice- Yes this is it.It Works.
Thx Chris