diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2012-09-25 16:58:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-26 12:18:30 +0200 |
commit | 28c053ccaddb4d8afa8581023a9618c2679dd16c (patch) | |
tree | 2b8d2982a9bb70df1ac07f22b4714e38b5ff234e /examples/customvideosurface/customvideosurface.pro | |
parent | b5fb793b9a7c96451893892e2734ad2fb10e5f4d (diff) |
Use QVideoWidget in the videowidget example.
The videowidget example now uses QVideoWidget instead of a custom
QAbstractVideoSurface, the former being the most straightforward and
fastest way of showing a video in a QWidget.
The old code has been moved to a new example: "customvideosurface".
Change-Id: I15fb4482d0e77bafd24d4cb03316fc8f4ef13c35
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Jason Barron <jason.barron@digia.com>
Diffstat (limited to 'examples/customvideosurface/customvideosurface.pro')
-rw-r--r-- | examples/customvideosurface/customvideosurface.pro | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/customvideosurface/customvideosurface.pro b/examples/customvideosurface/customvideosurface.pro new file mode 100644 index 000000000..9ddb7ed12 --- /dev/null +++ b/examples/customvideosurface/customvideosurface.pro @@ -0,0 +1,23 @@ +TEMPLATE = app +TARGET = customvideosurface + +QT += multimedia multimediawidgets + +HEADERS = \ + videoplayer.h \ + videowidget.h \ + videowidgetsurface.h + +SOURCES = \ + main.cpp \ + videoplayer.cpp \ + videowidget.cpp \ + videowidgetsurface.cpp + +target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/customvideosurface +sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro +sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/customvideosurface + +INSTALLS += target sources + +QT+=widgets |