diff options
| author | Aotrix <[email protected]> | 2026-02-01 15:08:10 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-02-01 15:08:10 +0100 |
| commit | f1b0610724433285d4fdb8ef4d5d27adb4310a7a (patch) | |
| tree | 4e6d3825bddafc525982cd5c60afd332e5394c42 /gameView | |
| parent | 34ba40ca622a7362eb48618deae3c91eac4b6f9a (diff) | |
Add gameView project
Diffstat (limited to 'gameView')
| -rw-r--r-- | gameView/.clangd | 3 | ||||
| -rw-r--r-- | gameView/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | gameView/main.cpp | 12 |
3 files changed, 23 insertions, 0 deletions
diff --git a/gameView/.clangd b/gameView/.clangd new file mode 100644 index 0000000..dddeaef --- /dev/null +++ b/gameView/.clangd @@ -0,0 +1,3 @@ +CompileFlags: + Remove: + - -mno-direct-extern-access diff --git a/gameView/CMakeLists.txt b/gameView/CMakeLists.txt new file mode 100644 index 0000000..1e923f1 --- /dev/null +++ b/gameView/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 3.20) + +project(GameView LANGUAGES CXX) + +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +add_executable(gameView main.cpp) +find_package(Qt6 COMPONENTS Widgets REQUIRED) +target_link_libraries(gameView PRIVATE Qt6::Widgets) diff --git a/gameView/main.cpp b/gameView/main.cpp new file mode 100644 index 0000000..4396ff7 --- /dev/null +++ b/gameView/main.cpp @@ -0,0 +1,12 @@ +#include <QtWidgets> +#include <qapplication.h> +#include <qwidget.h> + +int main(int argc, char *argv[]) { + QApplication aApplication(argc, argv); + QWidget aWindow; + aWindow.resize(1200, 1000); + aWindow.show(); + aWindow.setWindowTitle(QApplication::translate("toplevel", "Top-level widget")); + return aApplication.exec(); +} |
