From ad407852ddc29f95c2c760034fb402332c53ddfd Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Mon, 2 Feb 2026 20:38:29 +0100 Subject: Added a few layouts --- gameView/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gameView/main.cpp') 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 #include #include +#include +#include +#include +#include #include 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(); -- cgit v1.2.3