mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
imp. : high dpi screen support
This commit is contained in:
parent
c7926daac7
commit
c14e803881
2
main.cc
2
main.cc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue