Debian Codegraph @

examples/widgets/rhi/simplerhiwidget/main.cpp

raw
1 // Copyright (C) 2023 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4 #include <QApplication>
5 #include <QVBoxLayout>
6 #include <QHBoxLayout>
7 #include "examplewidget.h"
8
9 //![0]
10 int main(int argc, char **argv)
11 {
12 QApplication app(argc, argv);
13
14 ExampleRhiWidget *rhiWidget = new ExampleRhiWidget;
15
16 QVBoxLayout *layout = new QVBoxLayout;
17 layout->addWidget(rhiWidget);
18
19 QWidget w;
20 w.setLayout(layout);
21 w.resize(1280, 720);
22 w.show();
23
24 return app.exec();
25 }
26 //![0]