Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.7.0
-
Windows 8.1
Windows 10
Description
When having per-monitor-dpi awareness set on (-platform windows:dpiawareness=2), moving the application window between 1080p and 4k monitors scale the window strangely. Part of the problem may be if the widget has max width set, it does not get scaled properly.
Steps to reproduce:
- Run "Config Dialog" Qt Example with "QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);" added.
- Have the application pop up on 1080 screen initially
- Move the application to 4k screen
- Observe list widget not scaling properly because it has max width set
- Move application back to 1080 screen
- EXPECTED: All scaling works fine, application ends up looking the same as it was initially
- ACTUAL: Application's window size has doubled, scaling in 4k screen seems somewhat broken
Attachments
Issue Links
- duplicates
-
QTBUG-55510 Windows are the wrong size when moved between monitors with different DPI
- Closed