diff options
Diffstat (limited to 'qmidiplayerlite.src.d/main.cpp')
-rw-r--r-- | qmidiplayerlite.src.d/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qmidiplayerlite.src.d/main.cpp b/qmidiplayerlite.src.d/main.cpp new file mode 100644 index 0000000..1a87b33 --- /dev/null +++ b/qmidiplayerlite.src.d/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(); +} |