summaryrefslogtreecommitdiff
path: root/gameView/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gameView/main.cpp')
-rw-r--r--gameView/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gameView/main.cpp b/gameView/main.cpp
index 4396ff7..5687f1b 100644
--- a/gameView/main.cpp
+++ b/gameView/main.cpp
@@ -1,11 +1,24 @@
+#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("One");
+
+ 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();