Polish the videowidget example.

- Add command line parsing and file argument.
- Port to Qt 5 connection syntax.
- Adapt size to available geometry (for High DPI).

Task-number: QTBUG-53114
Change-Id: I1c1c547ddb14210ef5900f99f4870d6d91b67088
Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
This commit is contained in:
Friedemann Kleint
2016-05-03 11:21:17 +02:00
parent 1afe2ed975
commit 6f3e6a78ca
3 changed files with 62 additions and 19 deletions

View File

@@ -50,6 +50,7 @@ QT_BEGIN_NAMESPACE
class QAbstractButton;
class QSlider;
class QLabel;
class QUrl;
QT_END_NAMESPACE
class VideoPlayer : public QWidget
@@ -59,6 +60,8 @@ public:
VideoPlayer(QWidget *parent = 0);
~VideoPlayer();
void setUrl(const QUrl &url);
public slots:
void openFile();
void play();