Currently the QWindow::devicePixelRatio() documentation mentions that the device pixel ratio can change, but it does not explain how to track the changes. This patch adds that the QWindow instance receives the event of type QEvent::DevicePixelRatioChange when the device pixel ratio changes. Fixes: QTBUG-128182 Pick-to: 6.8 Change-Id: I2107015a07f30167c9f7324959b47ada0a75988d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit ada114f8b37b62fe80332105507b1afc20424aa6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%