summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/widgets-tutorial/template.cpp
blob: 856c4dbee11083a2801b57d55ab935222e400356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

//! [main.cpp body]
#include <QtWidgets>

// Include header files for application components.
// ...

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    // Set up and show widgets.
    // ...

    return app.exec();
}
//! [main.cpp body]