Skip to content

Commit e7f4110

Browse files
committed
issue #10922 Doxywizard Font Size Rendering Problem on 4k HiRes Monitors
Based on the comment https://stackoverflow.com/a/48582594/1657886 the code has been adjusted.
1 parent 4d93134 commit e7f4110

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

addon/doxywizard/doxywizard.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,14 @@ void MainWindow::outputLogFinish()
807807
//-----------------------------------------------------------------------
808808
int main(int argc,char **argv)
809809
{
810+
static const char ENV_VAR_QT_DEVICE_PIXEL_RATIO[] = "QT_DEVICE_PIXEL_RATIO";
811+
if (!qEnvironmentVariableIsSet(ENV_VAR_QT_DEVICE_PIXEL_RATIO)
812+
&& !qEnvironmentVariableIsSet("QT_AUTO_SCREEN_SCALE_FACTOR")
813+
&& !qEnvironmentVariableIsSet("QT_SCALE_FACTOR")
814+
&& !qEnvironmentVariableIsSet("QT_SCREEN_SCALE_FACTORS")) {
815+
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
816+
}
817+
810818
QApplication a(argc,argv);
811819
int locArgc = argc;
812820

0 commit comments

Comments
 (0)