summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-04-11 16:01:55 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-11 16:01:55 +0200
commita90d9bc5536b1a89bfcbbac2bfb98f70655d3c65 (patch)
tree37d2bac4be296f1f3ab6f66c6848ad8149782c3c /example
parent20392576795513b10ff6f6522b7177af7bd3d121 (diff)
Work in progress for a simple example
Diffstat (limited to 'example')
-rw-r--r--example/example.pro12
-rw-r--r--example/main.cpp15
2 files changed, 27 insertions, 0 deletions
diff --git a/example/example.pro b/example/example.pro
new file mode 100644
index 000000000..2a8e83614
--- /dev/null
+++ b/example/example.pro
@@ -0,0 +1,12 @@
+TEMPLATE = app
+TARGET = example
+
+SOURCES = main.cpp
+
+INCLUDEPATH += ../lib
+
+LIBS += -L../lib -lblinq
+
+QT += widgets
+
+QMAKE_RPATHDIR += ../lib
diff --git a/example/main.cpp b/example/main.cpp
new file mode 100644
index 000000000..566adf7e9
--- /dev/null
+++ b/example/main.cpp
@@ -0,0 +1,15 @@
+#include <QtGui>
+
+#include <blinqpage.h>
+
+int main(int argc, char **argv)
+{
+ printf("main called\n");
+ QGuiApplication app(argc, argv);
+
+ BlinqPage page;
+ page.window()->show();
+
+ return app.exec();
+}
+