Skip to content

Commit 14135f2

Browse files
lanzagarastaric
authored andcommitted
Merge pull request biolab#2011 from astaric/enable-hidpi-scaling
Enable HighDPI support (cherry picked from commit ed3dcf6)
1 parent 412fd13 commit 14135f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Orange/canvas/application/application.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class CanvasApplication(QApplication):
1212
fileOpenRequest = Signal(QUrl)
1313

1414
def __init__(self, argv):
15+
if hasattr(Qt, "AA_EnableHighDpiScaling"):
16+
# Turn on HighDPI support when available
17+
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
1518
QApplication.__init__(self, argv)
1619
self.setAttribute(Qt.AA_DontShowIconsInMenus, True)
1720

0 commit comments

Comments
 (0)