From b56d4db1a8aed057056314dd4b6a70dee3f8e726 Mon Sep 17 00:00:00 2001 From: parker Date: Wed, 18 Jun 2025 17:59:18 +0100 Subject: [PATCH] feat: interface init --- CMakeLists.txt | 7 ++++++- src/main.cpp | 10 ++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53c29d6..a40e204 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 3.10) project(node) -add_executable(test +find_package(Qt6 REQUIRED COMPONENTS Core Widgets) +qt_standard_project_setup() + +qt_add_executable(test src/main.cpp ) + +target_link_libraries(test PRIVATE Qt6::Core Qt6::Widgets) diff --git a/src/main.cpp b/src/main.cpp index 4db4a0a..d05a7be 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,12 @@ -#include +#include +#include int main() { - std::cout << "hello world\n"; + QApplication app (argc, argv); + + QPushButton button ("Hello world!"); + button.show(); + + return app.exec(); }