Qt 6.11 is out! See what's new in the release
blog
How to use custom Fonts
General and Desktop
4
Posts
3
Posters
1.1k
Views
1
Watching
-
Hi,
You can use "QFontDatabase::addApplicationFont":http://qt-project.org/doc/qt-5/qfontdatabase.html#addApplicationFont. Just pass the .ttf file.
-
You can also use the Qt resource system and add your fonts as resource. Then you can pass the font resource location to QFontDatabase (e.g. ":/resources/some.ttf")