Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
QScreen::geometry() and QScreen::size() return a scaled screen size, as documented at https://doc.qt.io/qt-6/highdpi.html#device-independent-screen-geometry
You can get the unscaled resolution by multiplying the reported size by the device pixel ratio:
auto scr = app.primaryScreen(); qDebug() << scr->size() * scr->devicePixelRatio();
Suggestion
Provide a convenience function to return the unscaled resolution (QScreen::unscaledSize() ?)
Attachments
Issue Links
- duplicates
-
QTBUG-66558 QScreen: add unscaled screen geometry
-
- Reported
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-109666 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
588785,1 | Add QScreen::nativeGeometry() and QScreen::nativeAvailableGeometry() | dev | qt/qtbase | Status: NEW | 0 | 0 |