imp. : high dpi screen support

This commit is contained in:
yifang 2022-01-20 20:23:14 +08:00
parent c7926daac7
commit c14e803881
No known key found for this signature in database
GPG key ID: 8765B97BD0EC1AC4

View file

@ -279,6 +279,8 @@ int main( int argc, char ** argv )
//high dpi screen support
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
QHotkeyApplication app( "GoldenDict", argc, argv );
LogFilePtrGuard logFilePtrGuard;