Qt: Use `DevicePixelRatioChange` to detect DPR changes

This commit is contained in:
TheLastRar 2025-05-31 16:57:42 +01:00 committed by lightningterror
parent 6ecaaee9e0
commit 8cb056bde3
1 changed files with 1 additions and 2 deletions

View File

@ -349,8 +349,7 @@ bool DisplayWidget::event(QEvent* event)
return true;
}
// According to https://bugreports.qt.io/browse/QTBUG-95925 the recommended practice for handling DPI change is responding to paint events
case QEvent::Paint:
case QEvent::DevicePixelRatioChange:
case QEvent::Resize:
{
QWidget::event(event);