Skip to content

Commit

Permalink
[71_33] UI: use anti-alias font only for Qt 6
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Feb 23, 2024
1 parent 8f3f40e commit e8b8f3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Plugins/Qt/qt_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,11 @@ qt_gui_rep::qt_gui_rep (int& argc, char** argv)
if (!use_native_menubar) {
qApp->setAttribute (Qt::AA_DontUseNativeMenuBar);
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QFont font= qApp->font ();
font.setStyleStrategy (QFont::PreferAntialias);
font.setHintingPreference (QFont::PreferFullHinting);
#endif
}

/* important routines */
Expand Down

0 comments on commit e8b8f3d

Please sign in to comment.