diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-04-19 12:22:02 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-04-19 11:10:36 +0000 |
commit | eb691c1245fc6af59c4ce18cc0df934ac4bc0e43 (patch) | |
tree | e1febf3446fec44dc95a058062a93a5c3c9fc53c /examples | |
parent | dd62e0654dfa62921b203531309d28bb563cecd4 (diff) |
Further cleanups of the VideoOutput API
Remove the mapTo* methods. QQuickItems has mapping methods, and
those should cover what's needed. Everything else can be done using
the source/contentRect properties.
Change-Id: I27d039a4a74ca815f8f5645f50cfc17238842041
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml index 105d0cca1..3ee257ffa 100644 --- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml +++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml @@ -51,7 +51,7 @@ import QtQuick import QtMultimedia -VideoOutput { +Item { id: root height: width @@ -80,7 +80,12 @@ VideoOutput { // resolution: "640x480" // frameRate: 30 } - videoOutput: root + videoOutput: videoOutput + } + + VideoOutput { + id: videoOutput + anchors.fill: parent } |