Skip to content

Commit

Permalink
application: Fix default application font on windows (QTBUG-61707)
Browse files Browse the repository at this point in the history
Qt5 uses obsolete MS Dlg Shell 2 'virtual' font by default.
  • Loading branch information
ales-erjavec committed Jun 14, 2024
1 parent 8a3ecf1 commit 1ff5286
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orangecanvas/application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def __init__(self, argv):
sh.setShowShortcutsInContextMenus(True)
if QT_VERSION_INFO < (5, 15): # QTBUG-61707
macos_set_nswindow_tabbing(False)
if QT_VERSION_INFO < (6, 0): # QTBUG-58610
# https://github.com/musescore/MuseScore/pull/5820
QApplication.setFont(QApplication.font("QMessageBox"))
self.configureStyle()

def event(self, event):
Expand Down

0 comments on commit 1ff5286

Please sign in to comment.