Debian Codegraph @

tests/manual/examples/widgets/graphicsview/flowlayout/main.cpp

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 //! [1]
4 #include "window.h"
5
6 #include <QApplication>
7 #include <QGraphicsView>
8
9
10 int main(int argc, char *argv[])
11 {
12 QApplication app(argc, argv);
13
14 QGraphicsScene scene;
15 QGraphicsView view(&scene);
16 Window *w = new Window;
17 scene.addItem(w);
18
19 view.resize(400, 300);
20 view.show();
21
22 return app.exec();
23 }
24 //! [1]