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())
Attachments
For Gerrit Dashboard: QTBUG-53795 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
179789,9 | Fix hidpi support for opengl window grabbing | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |
179863,7 | Fix hidpi support for opengl window grabbing | 5.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
179888,1 | Remove deprecated qt_gl_read_framebuffer member | 5.8 | qt/qtbase | Status: ABANDONED | 0 | 0 |