Skip to content

Commit

Permalink
Enable high DPI scaling on Qt >= 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
patstew committed Jul 29, 2016
1 parent a3f0644 commit 61ebc56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spyderlib/app/spyder.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
# Avoid a bug in Qt: https://bugreports.qt.io/browse/QTBUG-46720
from qtpy import QtWebEngineWidgets # analysis:ignore

#==============================================================================
# Proper high DPI scaling is available in Qt >= 5.6.0. This attibute must
# be set before creating the application
#==============================================================================
if hasattr(Qt, 'AA_EnableHighDpiScaling'):
QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True)

#==============================================================================
# Create our QApplication instance here because it's needed to render the
Expand Down

0 comments on commit 61ebc56

Please sign in to comment.