aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-03-19 09:21:11 +0100
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-07-01 14:20:57 +0200
commit27bbd51698c12891475dc27cb742265128e098d6 (patch)
tree854469b11471a9ca7fc3555e9af2737084735cc4 /src/quick
parent08f9b552c3735e15f9bf58ab5908652b06e47e88 (diff)
Add grabFramebuffer() to QQuickWidget and use it in the autotest
This introduces the need for a grab function in QQuickWidget. The render control has one already so there is no reason for not exposing this in QQuickWidget too. This also means that a relatively meaningful autotest can be now be added. [ChangeLog][QtQuick] Added QQuickWidget::grabFramebuffer() for capturing the content into a QImage. Task-number: QTBUG-37589 Change-Id: I5ca8192c0ef8dab4f076a4db27b64aebe3359bb8 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/qquickrendercontrol.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickrendercontrol.cpp b/src/quick/items/qquickrendercontrol.cpp
index 311a1b95f8..3a287242e0 100644
--- a/src/quick/items/qquickrendercontrol.cpp
+++ b/src/quick/items/qquickrendercontrol.cpp
@@ -317,6 +317,8 @@ void QQuickRenderControl::render()
/*!
Grabs the contents of the scene and returns it as an image.
+
+ \note Requires the context to be current.
*/
QImage QQuickRenderControl::grab()
{