- 
    Bug 
- 
    Resolution: Fixed
- 
    P1: Critical 
- 
    6.3.0
- 
    openSUSE Tumbleweed 20220525
- 
        
- 
        27efadec22 (qt/qtbase/dev) 27efadec22 (qt/tqtc-qtbase/dev) b5422d2ad6 (qt/qtbase/6.3) b5422d2ad6 (qt/tqtc-qtbase/6.3)
qDebug() << qApp->primaryScreen()->physicalSize()
         << qApp->primaryScreen()->physicalDotsPerInchY();
- Qt 5: QSizeF(340, 190) 144.379
- Qt 6: QSizeF(508, 285) 96.2526
It appears that Qt 5 follows xrandr while Qt 6 follows xdpyinfo?
xrandr
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
xdpyinfo
dimensions: 1920x1080 pixels (508x285 millimeters) resolution: 96x96 dots per inch
Unfortunately, xdpyinfo seems to always assume DPI=96:
- duplicates
- 
                    QTBUG-101038 Wrong physical DPI -         
- Closed
 
-