summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-07-26 18:06:13 +0200
committerSteru <jerrydream111@gmail.com>2024-07-26 18:06:13 +0200
commitb5566cbcf7541819490e6e97610485c4194c716f (patch)
treee0554b108856bb39375288ad07e2f0ffadce12ef /src/main
parent39f6ee17569327ecc8e8ea2d254a452445e694f7 (diff)
parenta5ba031c9dfc830d3fe44e868c5fd26af2fbb225 (diff)
Merge remote-tracking branch 'origin/main'
# Conflicts: # CMakeLists.txt
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index bc8f460..4796716 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -1,6 +1,19 @@
-#include <iostream>
+#include <QGuiApplication>
+#include <QQmlEngine>
+#include <QQmlContext>
+#include <QQmlComponent>
-int main() {
- std::cout << "Hello, World!" << std::endl;
- return 0;
+int main(int argc, char *argv[])
+{
+ QGuiApplication app(argc, argv);
+
+ QQmlEngine engine;
+ QQmlContext *objectContext = new QQmlContext(engine.rootContext());
+
+ QQmlComponent component(&engine, "application.qml");
+ QObject *object = component.create(objectContext);
+
+ // ... delete object and objectContext when necessary
+
+ return app.exec();
}