summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/flowlayout/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/flowlayout/main.cpp')
-rw-r--r--examples/graphicsview/flowlayout/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/graphicsview/flowlayout/main.cpp b/examples/graphicsview/flowlayout/main.cpp
new file mode 100644
index 0000000..a7af2d4
--- /dev/null
+++ b/examples/graphicsview/flowlayout/main.cpp
@@ -0,0 +1,14 @@
+#include <QtGui>
+#include "window.h"
+
+int main(int argc, char **argv)
+{
+ QApplication app(argc, argv);
+
+ QGraphicsScene scene;
+ QGraphicsView *view = new QGraphicsView(&scene);
+ Window *w = new Window;
+ scene.addItem(w);
+ view->show();
+ return app.exec();
+} \ No newline at end of file