summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-02-02 20:38:29 +0100
committerAotrix <[email protected]>2026-02-02 20:38:29 +0100
commitad407852ddc29f95c2c760034fb402332c53ddfd (patch)
tree0328e1fbe83a2d728795ce1e77b7cf6f288fa3d2
parentf1b0610724433285d4fdb8ef4d5d27adb4310a7a (diff)
Added a few layouts
-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();