diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-03-31 12:47:53 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-03-31 12:54:50 (GMT) |
commit | f870d559aa3a3c56f4fe34ada49d613b45963377 (patch) | |
tree | 9d6aa3eea40d6cbd24731a29abde965ee7314113 /examples/graphicsview/flowlayout/main.cpp | |
parent | 8de6bbfa0f3819cd13fc5fd5acc3eb1f7689db73 (diff) | |
download | Qt-f870d559aa3a3c56f4fe34ada49d613b45963377.zip Qt-f870d559aa3a3c56f4fe34ada49d613b45963377.tar.gz Qt-f870d559aa3a3c56f4fe34ada49d613b45963377.tar.bz2 |
Add an example of how to write a custom layout for QGraphicsLayouts.
Flowlayout... Documentation will follow.
Diffstat (limited to 'examples/graphicsview/flowlayout/main.cpp')
-rw-r--r-- | examples/graphicsview/flowlayout/main.cpp | 14 |
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 |