diff options
Diffstat (limited to 'tests/auto/gui/kernel/noqteventloop/tst_noqteventloop.cpp')
-rw-r--r-- | tests/auto/gui/kernel/noqteventloop/tst_noqteventloop.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/gui/kernel/noqteventloop/tst_noqteventloop.cpp b/tests/auto/gui/kernel/noqteventloop/tst_noqteventloop.cpp index ed89e6fbb4..3e19764618 100644 --- a/tests/auto/gui/kernel/noqteventloop/tst_noqteventloop.cpp +++ b/tests/auto/gui/kernel/noqteventloop/tst_noqteventloop.cpp @@ -223,7 +223,8 @@ void tst_NoQtEventLoop::consumeMouseEvents() int argc = 1; char *argv[] = {const_cast<char*>("test")}; // ensure scaling is off since the child window is positioned using QWindow API. - QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); + // FIXME: Position by taking the screen DPR into account instead + qputenv("QT_ENABLE_HIGHDPI_SCALING", "0"); QGuiApplication app(argc, argv); QString clsName(QStringLiteral("tst_NoQtEventLoop_WINDOW")); const HINSTANCE appInstance = (HINSTANCE)GetModuleHandle(0); |