QMLVideo Example visual update
Task-number: QTBUG-36287 Change-Id: I797a995c2ccd6f6fec40fbf50f93e297ae15a9b1 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
@@ -123,13 +123,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
const QStringList moviesLocation = QStandardPaths::standardLocations(QStandardPaths::MoviesLocation);
|
||||
const QUrl videoPath =
|
||||
QUrl::fromLocalFile(moviesLocation.isEmpty() ?
|
||||
app.applicationDirPath() :
|
||||
moviesLocation.front());
|
||||
QUrl::fromLocalFile(moviesLocation.isEmpty() ?
|
||||
app.applicationDirPath() :
|
||||
moviesLocation.front());
|
||||
viewer.rootContext()->setContextProperty("videoPath", videoPath);
|
||||
|
||||
QMetaObject::invokeMethod(rootObject, "init");
|
||||
|
||||
viewer.setMinimumSize(QSize(640, 360));
|
||||
viewer.show();
|
||||
|
||||
return app.exec();
|
||||
|
||||
Reference in New Issue
Block a user