Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.2, 5.5.1, 5.6.2, 5.7.0, 5.8.0 Beta
-
None
Description
The generated image does not contains the window device pixel ratio property and lead to big images being painted while the grabbed window is on a retina screen and drawn on a non retina screen.
Those calls are affected:
- QQuickWindow::grabWindow()
- QQuickWidget::grabFramebuffer()
Workaround, set the image devicePixelRatio yourself:
- image.setDevicePixelRatio(QQuickWindow::effectiveDevicePixelRatio())
- image.setDevicePixelRatio(QQuickWidget::quickwindow::effectiveDevicePixelRatio())