summaryrefslogtreecommitdiff
path: root/gameView/main.cpp
blob: 2553e083e0bdcf0792f65d98a3784211ac3f82ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <QVBoxLayout>
#include <QtWidgets>
#include <qapplication.h>
#include <qboxlayout.h>
#include <qgridlayout.h>
#include <qnamespace.h>
#include <qpushbutton.h>
#include <qwidget.h>

int main(int argc, char *argv[]) {
    QApplication aApplication(argc, argv);
    QWidget aWindow;
    aWindow.resize(1200, 1000);

    QPushButton aButton("Click");

    QGridLayout aLayout(&aWindow);
    aLayout.addWidget(&aButton, 0, 0, Qt::AlignBottom);
    QVBoxLayout aVerticalLayout;
    aLayout.addLayout(&aVerticalLayout, 0, 1, 1, 3);

    aWindow.show();
    aWindow.setWindowTitle(QApplication::translate("toplevel", "Top-level widget"));
    return aApplication.exec();
}