Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.0, 5.8.0
-
None
-
Tested on macOS 10.12.1 and Ubuntu 16.04.1
Description
The following snippet prints this stderr:
Item::grabToImage: no QML Engine
import QtQuick 2.5 import QtQuick.Window 2.2 Window { visible: true width: 640 height: 480 Component.onCompleted: { contentItem.grabToImage(function (image) { image.saveToFile("screenshot.png") }) } }
Attachments
For Gerrit Dashboard: QTBUG-57175 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
180533,10 | Make it possible to call grabToImage() on Window.contentItem | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |