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:
committed by
The Qt Project
parent
b5fb793b9a
commit
28c053ccad
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user