Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0
-
Windows Phone
Windows 8
-
-
eea02ff10da0ff6bba665df560c5404477b9f550 qtbase#stable
Description
This mainly affects Windows Phone, which uses scaled windows by default (this can also affect Windows 8, when scaling is enabled). The reported screen size is in DIPs (Device-independent pixels) so that a control on one screen will be the same physical size as a control on another. The result is that the reported resolution tends to be much smaller than the physical resolution of the device (on high-DPI devices).
The current problem is that a user has no way of creating a higher-resolution backing store or default framebuffer, so things like text will always look a bit fuzzy on high-resolution devices due to being scaled up. In some cases, developers may indeed wish to have the default, lower-resolution window (whether for performance reasons or physical size consistency), while in other cases the developer may expect the full screen resolution.
One (tested working) solution is report all resolutions in terms of DIP * scaleFactor. Then, the windows and framebuffers will be created in physical pixel size. The logicalDotsPerInch() methods can be adjusted so that it reports the correct value, of course.
Attachments
Issue Links
- relates to
-
QTBUG-38993 Windows: Fix High DPI issues
- Closed