diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-03-19 09:21:11 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-07-01 14:20:57 +0200 |
commit | 27bbd51698c12891475dc27cb742265128e098d6 (patch) | |
tree | 854469b11471a9ca7fc3555e9af2737084735cc4 /tests/auto/quickwidgets/qquickwidget/data/animating.qml | |
parent | 08f9b552c3735e15f9bf58ab5908652b06e47e88 (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 'tests/auto/quickwidgets/qquickwidget/data/animating.qml')
-rw-r--r-- | tests/auto/quickwidgets/qquickwidget/data/animating.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/quickwidgets/qquickwidget/data/animating.qml b/tests/auto/quickwidgets/qquickwidget/data/animating.qml new file mode 100644 index 0000000000..1f6467aabe --- /dev/null +++ b/tests/auto/quickwidgets/qquickwidget/data/animating.qml @@ -0,0 +1,11 @@ +import QtQuick 2.0 + +Rectangle { + Rectangle { + width: 100 + height: 100 + anchors.centerIn: parent + color: "red" + NumberAnimation on rotation { from: 0; to: 360; duration: 2000; loops: Animation.Infinite; } + } +} |