mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-17 04:31:08 +08:00
18 lines
442 B
C++
18 lines
442 B
C++
#include <QtGui/QGuiApplication>
|
|
|
|
#include "qtquick2applicationviewer.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QtQuick2ApplicationViewer viewer;
|
|
QString qml = "qml/QMLPlayer/main.qml";
|
|
if (!QFile(qml).exists())
|
|
qml.prepend("qrc:///");
|
|
viewer.setMainQmlFile(qml);
|
|
viewer.showExpanded();
|
|
viewer.setTitle("QMLPlayer based on QtAV. wbsecg1@gmail.com");
|
|
return app.exec();
|
|
}
|