feat: interface init

This commit is contained in:
parker
2025-06-18 17:59:18 +01:00
parent 4257dc65eb
commit b56d4db1a8
2 changed files with 14 additions and 3 deletions

View File

@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.10) cmake_minimum_required(VERSION 3.10)
project(node) project(node)
add_executable(test find_package(Qt6 REQUIRED COMPONENTS Core Widgets)
qt_standard_project_setup()
qt_add_executable(test
src/main.cpp src/main.cpp
) )
target_link_libraries(test PRIVATE Qt6::Core Qt6::Widgets)

View File

@@ -1,6 +1,12 @@
#include <iostream> #include <QApplication>
#include <QPushButton>
int main() int main()
{ {
std::cout << "hello world\n"; QApplication app (argc, argv);
QPushButton button ("Hello world!");
button.show();
return app.exec();
} }