diff options
| author | Aotrix <[email protected]> | 2026-02-04 23:10:15 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-02-04 23:10:15 +0100 |
| commit | 82d568a7b4f6408215711eb62c3fdab287f45d05 (patch) | |
| tree | d8ca8cc72143fdb210354700f9daeb2777a1f18b /gameView/main.cpp | |
| parent | 1fac496ea819e68570dc3cfe1794d8f603adf465 (diff) | |
added list of items
Diffstat (limited to 'gameView/main.cpp')
| -rw-r--r-- | gameView/main.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gameView/main.cpp b/gameView/main.cpp index 2553e08..1969e3a 100644 --- a/gameView/main.cpp +++ b/gameView/main.cpp @@ -3,6 +3,7 @@ #include <qapplication.h> #include <qboxlayout.h> #include <qgridlayout.h> +#include <qlistwidget.h> #include <qnamespace.h> #include <qpushbutton.h> #include <qwidget.h> @@ -12,14 +13,11 @@ int main(int argc, char *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); + QListWidget aListWidget; + aLayout.addWidget(&aListWidget, 0, 0); aWindow.show(); - aWindow.setWindowTitle(QApplication::translate("toplevel", "Top-level widget")); + aWindow.setWindowTitle("Heathstone simulator"); return aApplication.exec(); } |
