summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dial/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/dial/main.cpp')
-rw-r--r--examples/declarative/dial/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/declarative/dial/main.cpp b/examples/declarative/dial/main.cpp
new file mode 100644
index 0000000..b65c9ff
--- /dev/null
+++ b/examples/declarative/dial/main.cpp
@@ -0,0 +1,18 @@
+#include <QApplication>
+#include <QUrl>
+#include <qmlview.h>
+
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+
+ QmlView *canvas = new QmlView;
+ canvas->setUrl(QUrl("qrc:/dial.qml"));
+ canvas->execute();
+ canvas->resize(210,240);
+ canvas->show();
+
+ return app.exec();
+}
+
+