Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.7.0
-
None
-
Linux fx-8320 4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 x86_64 GNU/Linux
-
7c9a549 (qtdeclarative/5.15)
Description
...unless private QQuickWindow API is used, like in QQuickWidget::show() and hide().
qquickitemgrabresult.cpp contains this code:
{{
if (!item->window()->isVisible())
}}
that makes it impossible to use grabToImage() on a hidden QWindow. This window, however, may be a hidden window that QQuickWidget uses internally to render results into a framebuffer object. The example "rendercontrol" also uses such a window. This makes it impossible to grab items, that are visible, but contained in an internal, hidden, QWindow, effectively disabling a part of Qt functionality.
Attachments
Issue Links
- duplicates
-
QTBUG-79339 grabToImage in QQuickWidget regression
-
- Closed
-
For Gerrit Dashboard: QTBUG-55879 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
171506,2 | Enhance quickwidget example with all grabbing cases | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
298069,3 | qquickitemgrabresult: Check effective window for visibility | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
302572,2 | qquickitemgrabresult: Check effective window for visibility | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |