diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index d66cefb2a97..9410b2fb9df 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -43,6 +43,7 @@ #include "private/qevent_p.h" #include "private/qeventpoint_p.h" #include "private/qpointingdevice_p.h" +#include "private/qscreen_p.h" #include #include #include @@ -785,6 +786,7 @@ void QWindowSystemInterface::handleScreenAdded(QPlatformScreen *ps, bool isPrima QGuiApplicationPrivate::resetCachedDevicePixelRatio(); QHighDpiScaling::updateHighDpiScaling(); + screen->d_func()->updateHighDpi(); emit qGuiApp->screenAdded(screen);