|qmake:||QT += quick|
- 1 property inherited from QObject
- 31 public functions inherited from QObject
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
Additional Inherited Members
See also QQuickItem::grabToImage().
image : const QImage
This property holds the pixel results from a grab.
If the grab is not yet complete or if it failed, a null image is returned (
image.isNull() will return
url : const QUrl
This property holds a URL which can be used in conjunction with URL based image consumers, such as the QtQuick::Image type.
The URL is valid until the QQuickItemGrabResult object is deleted.
The URL does not represent a valid file or location to read it from, it is primarily a key to access images through Qt Quick's image-based types.
Member Function Documentation
This signal is emitted when the grab has completed.
bool QQuickItemGrabResult::saveToFile(const QString &fileName) const
Saves the grab result as an image to fileName. Returns true if successful; otherwise returns false.
Note: In Qt versions prior to 5.9, this function is marked as non-
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.