>Try looking at QHighDpiScaling::initHighDpiScaling() and
QHighDpiScaling::updateHighDpiScaling(). The latter should eventually make
a call to QWindowsScreen:: pixelDensity() which I would expect to return 2
in your case.

Debugging this I can see that pixelDensity returns 1.0.
qwindowscreen.cpp L281:
    const qreal physicalDpi = m_data.geometry.width() /
m_data.physicalSizeMM.width() * qreal(25.4);

My data:
m_data.geometry.width() = 3840
m_data.physicalSizeMM.width() = 1355

This seems strange if I should intrepret this as physical MM since my
monitor is about 530mm Wide. It seems like the ratio is about 25.4 between
the value and the actual width....

So if m_data.physicalSizeMM.width actually contained the width of my
monitor in MM pixelDensity would return 2. Perhaps there is some strange
going on here?

Best regards
Johan
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to