(Windows only) Improve the dpi handling with different dpi screens on windows
This commit is contained in:
committed by
wwmayer
parent
dd09ff948a
commit
aa5ac86b87
@@ -1904,6 +1904,10 @@ void Application::runApplication(void)
|
||||
#if QT_VERSION >= 0x050600
|
||||
//Enable automatic scaling based on pixel density of display (added in Qt 5.6)
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
#ifdef FC_OS_WIN32
|
||||
SetProcessDPIAware(); // call before the main event loop
|
||||
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
|
||||
#endif
|
||||
#endif
|
||||
#if QT_VERSION >= 0x050100
|
||||
//Enable support for highres images (added in Qt 5.1, but off by default)
|
||||
|
||||
Reference in New Issue
Block a user