note i did this too: #if OPT_WINOS // this part ensures that when a window is moved from one monitor to // another, and they have differnt scale factors, that the window // resizes itself to the scale factor { typedef BOOL (*SetProcessDpiAwarenessT)(int value); QLibrary user32("user32.dll", NULL); SetProcessDpiAwarenessT SetProcessDpiAwarenessD = (SetProcessDpiAwarenessT)user32.resolve("SetProcessDpiAwarenessInternal");
if (SetProcessDpiAwarenessD) { SetProcessDpiAwarenessD(1); //PROCESS_PER_MONITOR_DPI_AWARE } } #endif
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest