summaryrefslogtreecommitdiff
path: root/src/examples/piano/piano.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/piano/piano.cpp')
-rw-r--r--src/examples/piano/piano.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/examples/piano/piano.cpp b/src/examples/piano/piano.cpp
new file mode 100644
index 0000000..55e0bde
--- /dev/null
+++ b/src/examples/piano/piano.cpp
@@ -0,0 +1,17 @@
+#include <QGuiApplication>
+#include <QQmlEngine>
+#include <QQuickView>
+
+int main(int argc, char *argv[])
+{
+ QGuiApplication app(argc, argv);
+ app.setApplicationName("The QuickStreamer Piano");
+
+ QQuickView view;
+ view.engine()->addImportPath(TOP_OUTDIR "/src");
+ view.setSource(QUrl("qrc:///qml/Piano.qml"));
+ QObject::connect(&view, SIGNAL(destroyed()), &app, SLOT(quit()));
+ view.show();
+
+ return app.exec();
+}