diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-06 16:54:29 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-06 16:54:29 +0800 |
commit | 70fd2d85c1bd6fb8732e680e8fda9d36c317c732 (patch) | |
tree | 4f048e7af294a2d40d3cabb9ea0ff266aa1fc36c /qmidiplayer-lite/main.cpp | |
parent | cf7eafca1fbc9aae495d7b7d7e1fb4bc92e6819f (diff) | |
download | QMidiPlayer-70fd2d85c1bd6fb8732e680e8fda9d36c317c732.tar.xz |
Too young too simple.
Diffstat (limited to 'qmidiplayer-lite/main.cpp')
-rw-r--r-- | qmidiplayer-lite/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qmidiplayer-lite/main.cpp b/qmidiplayer-lite/main.cpp new file mode 100644 index 0000000..1a87b33 --- /dev/null +++ b/qmidiplayer-lite/main.cpp @@ -0,0 +1,15 @@ +#include <QApplication> +#include <QtQml> +#include <QQmlApplicationEngine> +#include "qmpcorewrapper.hpp" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + qmlRegisterType<CQMPCoreWrapper>("org.chrisoft.qmpcore",1,0,"CQMPCoreWrapper"); + + QQmlApplicationEngine engine; + engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); + + return app.exec(); +} |