summaryrefslogtreecommitdiffstats
path: root/examples/videowidget/main.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2012-09-25 16:58:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-26 12:18:30 +0200
commit28c053ccaddb4d8afa8581023a9618c2679dd16c (patch)
tree2b8d2982a9bb70df1ac07f22b4714e38b5ff234e /examples/videowidget/main.cpp
parentb5fb793b9a7c96451893892e2734ad2fb10e5f4d (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/videowidget/main.cpp')
-rw-r--r--examples/videowidget/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/videowidget/main.cpp b/examples/videowidget/main.cpp
index 8b7aba641..b0d83d010 100644
--- a/examples/videowidget/main.cpp
+++ b/examples/videowidget/main.cpp
@@ -47,6 +47,7 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
VideoPlayer player;
+ player.resize(320, 240);
player.show();
return app.exec();