mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-29 11:36:51 +08:00
17 lines
375 B
C++
17 lines
375 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();
|
|
return app.exec();
|
|
}
|