Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use: QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen factors. 5.14.0 windows windowsvista() \\.\DISPLAY1 QRect(0,0 1920x1080) dpr=2 108DPI \\.\DISPLAY2 QRect(3840,268 1680x1050) dpr=1 96DPI QWidget::setFixedSize QWidget(0x23030e6d570, name="W1") QSize(400, 50) QWidget::resize QWidget(0x23030e6d570, name="W1") QSize(400, 50) Showing window that exhibits the HiDPI window frame size bug. true QSize(400, 50) QWindow::QWindow cur= QPoint(4145,960) QWindowPrivate::init QScreen(0x0) cur= QPoint(4145,960) QWindow::setMinimumSize QWidgetWindow(0x23030e74300, name="W1Window") QSize(400, 50) QWindow::setMaximumSize QWidgetWindow(0x23030e74300, name="W1Window") QSize(400, 50) QWindow::setScreen QWidgetWindow(0x23030e74300, name="W1Window") QScreen(0x23030e55c70, name="\\\\.\\DISPLAY1") QPlatformWindow::initialGeometry QWidgetWindow(0x23030e74300, name="W1Window") true "\\\\.\\DISPLAY1" QRect(0,0 800x100) effectiveScreen ref point from cursor QPoint(4145,960) effectiveScreen rets QScreen(0x23030e555e0, name="\\\\.\\DISPLAY2") QPlatformWindow::initialGeometry av= QRect(3840,268 1680x1010) QScreen(0x23030e555e0, name="\\\\.\\DISPLAY2") QPlatformWindow::initialGeometry QWidgetWindow(0x23030e74300, name="W1Window") rets QRect(4480,748 400x50) "\\\\.\\DISPLAY2" CreateWindowEx: QWidgetWindow(0x23030e74300, name=W1Window) on "\\.\DISPLAY1" class=Qt5QWindowIcon title=qtbug77307 WindowCreationData: QFlags(Window|WindowTitleHint|WindowSystemMenuHint|WindowMinMaxButtonsHint|WindowCloseButtonHint) topLevel=true popup=false dialog=false embedded=false tool=false style=0x86ce0000 WS_POPUP WS_CLIPSIBLINGS WS_CLIPCHILDREN WS_THICKFRAME WS_DLGFRAME WS_SYSMENU WS_MINIMIZEBOX requested: QRect(4480,748 400x50): 416x89+4472+717 custom margins: QMargins(0, 0, 0, 0) invisible margins: QMargins(0, 0, 0, 0) ------------------------------> >QWindowsGeometryHint::applyToMinMaxInfoQWidgetWindow(0x23030e74300, name="W1Window")QScreen(0x23030e55c70, name="\\\\.\\DISPLAY1") < min=816,139 max=816,139 margins=QMargins(8, 31, 8, 8) in MINMAXINFO maxSize=3868,2188 maxpos=-14,-14 mintrack=292,79 maxtrack=5552,2192 <------------------------------ CreateWindowEx: returns QWidgetWindow(0x23030e74300, name="W1Window") 0xe3097e obtained geometry: QPoint(4480,748)QSize(800, 100) QMargins(8, 31, 8, 8) QWindowPrivate::emitScreenChangedRecursion QWidgetWindow(0x23030e74300, name="W1Window") "\\\\.\\DISPLAY2" Showing window that works around the HiDPI window frame size bug. QWidget::setFixedSize QWidget(0x23032f55a70, name="W2") QSize(400, 50) QWidget::resize QWidget(0x23032f55a70, name="W2") QSize(400, 50) QWidget::move QWidget(0x23032f55a70, name="W2") QPoint(4479,868) QWindow::QWindow cur= QPoint(4145,960) QWindowPrivate::init QScreen(0x0) cur= QPoint(4145,960) QWindow::setMinimumSize QWidgetWindow(0x23032f8c510, name="W2Window") QSize(400, 50) QWindow::setMaximumSize QWidgetWindow(0x23032f8c510, name="W2Window") QSize(400, 50) QWindow::setGeometry QWidgetWindow(0x23032f8c510, name="W2Window") QRect(0,0 0x0) -> QRect(4479,868 400x50) QWindow::setScreen QWidgetWindow(0x23032f8c510, name="W2Window") QScreen(0x23030e555e0, name="\\\\.\\DISPLAY2") QWindowPrivate::emitScreenChangedRecursion QWidgetWindow(0x23032f8c510, name="W2Window") "\\\\.\\DISPLAY2" QPlatformWindow::initialGeometry QWidgetWindow(0x23032f8c510, name="W2Window") true "\\\\.\\DISPLAY2" QRect(4479,868 400x50) QPlatformWindow::initialGeometry QWidgetWindow(0x23032f8c510, name="W2Window") rets QRect(4479,868 400x50) "\\\\.\\DISPLAY2" CreateWindowEx: QWidgetWindow(0x23032f8c510, name=W2Window) on "\\.\DISPLAY2" class=Qt5QWindowIcon title=qtbug77307 WindowCreationData: QFlags(Window|WindowTitleHint|WindowSystemMenuHint|WindowMinMaxButtonsHint|WindowCloseButtonHint) topLevel=true popup=false dialog=false embedded=false tool=false style=0x86ce0000 WS_POPUP WS_CLIPSIBLINGS WS_CLIPCHILDREN WS_THICKFRAME WS_DLGFRAME WS_SYSMENU WS_MINIMIZEBOX requested: QRect(4479,868 400x50): 416x89+4479+868 custom margins: QMargins(0, 0, 0, 0) invisible margins: QMargins(7, 0, 7, 7) >QWindowsGeometryHint::applyToMinMaxInfoQWidgetWindow(0x23032f8c510, name="W2Window")QScreen(0x23030e555e0, name="\\\\.\\DISPLAY2")< min=416,89 max=416,89 margins=QMargins(8, 31, 8, 8) in MINMAXINFO maxSize=3868,2188 maxpos=-14,-14 mintrack=292,79 maxtrack=5552,2192 CreateWindowEx: returns QWidgetWindow(0x23032f8c510, name="W2Window") 0x1a60896 obtained geometry: QPoint(4480,899)QSize(400, 50) QMargins(8, 31, 8, 8) QWindowsContext::windowsProc WM_GETMINMAXINFO: hwnd(0x1a60896) wParam(0x0) lParam(0x886c1dea00) QWindowsWindow::getSizeHints >QWindowsGeometryHint::applyToMinMaxInfoQWidgetWindow(0x23032f8c510, name="W2Window")QScreen(0x23030e555e0, name="\\\\.\\DISPLAY2")< min=416,89 max=416,89 margins=QMargins(8, 31, 8, 8) in MINMAXINFO maxSize=3856,2176 maxpos=-8,-8 mintrack=136,39 maxtrack=5552,2192 QWindowsContext::windowsProc WM_GETMINMAXINFO: hwnd(0x1a60896) wParam(0x0) lParam(0x886c1de9f0) QWindowsWindow::getSizeHints >QWindowsGeometryHint::applyToMinMaxInfoQWidgetWindow(0x23032f8c510, name="W2Window")QScreen(0x23030e555e0, name="\\\\.\\DISPLAY2")< min=416,89 max=416,89 margins=QMargins(8, 31, 8, 8) in MINMAXINFO maxSize=3856,2176 maxpos=-8,-8 mintrack=136,39 maxtrack=5552,2192