diff --git a/src/plugins/platforms/cocoa/qnsview_drawing.mm b/src/plugins/platforms/cocoa/qnsview_drawing.mm index 61691ab4fb5..c903bcd5359 100644 --- a/src/plugins/platforms/cocoa/qnsview_drawing.mm +++ b/src/plugins/platforms/cocoa/qnsview_drawing.mm @@ -147,7 +147,15 @@ // Ideally we would plumb this situation through QPA in a way that lets // clients invalidate their own caches, recreate QBackingStore, etc. - // For now we trigger an expose, and let QCocoaBackingStore deal with + + // QPA supports DPR (scale) change notifications. We are not sure + // based on this event that it is the scale that has changed (it + // could be the color space), however QPA will determine if it has + // actually changed. + QWindowSystemInterface::handleWindowDevicePixelRatioChanged + (m_platformWindow->window()); + + // Trigger an expose, and let QCocoaBackingStore deal with // buffer invalidation internally. [self setNeedsDisplay:YES]; }