Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.12.1
Description
Multiple HighDPI monitors causes QScreen::virtualGeometry to hint that there might be a gap between monitors. For example with 2 4k monitors at 200%:
Virtual geometry: 5760x1080+0+0 Available: 5760x1040+0+0
It ends up with the value of 5760 because the x coordinate of the second monitor is unscaled plus the scaled width (3840 + 1920).
However, because QScreen::geometry() returns size of both monitors as 1920x1080, it makes it look as if the virtual desktop of the system has a gap between the two monitors.
Output from qtdiag on such system:
Screens: 2, High DPI scaling: active # 0 "\\.\DISPLAY1" Depth: 32 Primary: yes Manufacturer: Model: Serial number: Geometry: 1920x1080+0+0 (native: 3840x2160+0+0) Available: 1920x1040+0+0 Virtual geometry: 5760x1080+0+0 Available: 5760x1040+0+0 2 virtual siblings Physical size: 621x341 mm Refresh: 60 Hz Power state: 0 Physical DPI: 78.5314,80.4457 Logical DPI: 96,96 (native: 192,192) Subpixel_None High DPI scaling factor: 2 DevicePixelRatio: 2 Pixel density: 2 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 # 1 "\\.\DISPLAY2" Depth: 32 Primary: no Manufacturer: Model: Serial number: Geometry: 1920x1080+3840+0 (native: 3840x2160+3840+0) Available: 1920x1040+3840+0 Virtual geometry: 5760x1080+0+0 Available: 5760x1040+0+0 2 virtual siblings Physical size: 621x341 mm Refresh: 60 Hz Power state: 0 Physical DPI: 78.5314,80.4457 Logical DPI: 96,96 (native: 192,192) Subpixel_None High DPI scaling factor: 2 DevicePixelRatio: 2 Pixel density: 2 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
Attachments
Issue Links
- relates to
-
QTBUG-73014 When there is a mixture of windows with different DPIs then specifying a position for a window can end up being incorrectly placed
- Closed