summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/widgets-tutorial/toplevel/main.cpp
blob: cffdff8851b70147cac0fc73d579c5f702ef19ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <QtGui>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
//! [create, resize and show]
    QWidget *window = new QWidget();
    window->resize(320, 240);
    window->show();
//! [create, resize and show]
    window->setWindowTitle(tr("Top-level widget"));
    return app.exec();
}