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>
This commit is contained in:
Yoann Lopes
2012-09-25 16:58:44 +02:00
committed by The Qt Project
parent b5fb793b9a
commit 28c053ccad
12 changed files with 304 additions and 11 deletions

View File

@@ -4,15 +4,11 @@ TARGET = videowidget
QT += multimedia multimediawidgets
HEADERS = \
videoplayer.h \
videowidget.h \
videowidgetsurface.h
videoplayer.h
SOURCES = \
main.cpp \
videoplayer.cpp \
videowidget.cpp \
videowidgetsurface.cpp
videoplayer.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/videowidget
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro