Changeset 33812c3 in sasview for src


Ignore:
Timestamp:
Oct 26, 2018 5:39:22 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
aed159f
Parents:
8fad50b
Message:

Enable high DPI scaling for senselessly high resolution displays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/MainWindow.py

    rb14db78 r33812c3  
    66from PyQt5.QtWidgets import QApplication 
    77from PyQt5.QtGui import QPixmap 
     8from PyQt5.QtCore import Qt 
    89import os 
    910import sys 
     
    5859    splash = SplashScreen() 
    5960    splash.show() 
    60  
     61    app.setAttribute(Qt.AA_EnableHighDpiScaling) 
    6162    # fix for pyinstaller packages app to avoid ReactorAlreadyInstalledError 
    6263    import sys 
Note: See TracChangeset for help on using the changeset viewer.