author | unC0Rr |
Sun, 12 Jan 2025 22:48:47 +0100 | |
changeset 16085 | 9ad74696ddec |
parent 16084 | 2d65bd46c92f |
permissions | -rw-r--r-- |
16084 | 1 |
#include <QGuiApplication> |
2 |
#include <QQmlApplicationEngine> |
|
3 |
#include <QQmlContext> |
|
4 |
||
5 |
#include "tracer.h" |
|
6 |
||
7 |
int main(int argc, char *argv[]) { |
|
8 |
QGuiApplication app(argc, argv); |
|
9 |
||
10 |
QQmlApplicationEngine engine; |
|
11 |
||
12 |
QObject::connect( |
|
13 |
&engine, &QQmlApplicationEngine::objectCreationFailed, &app, |
|
14 |
[]() { QCoreApplication::exit(-1); }, Qt::QueuedConnection); |
|
15 |
engine.loadFromModule("hhtracer", "Main"); |
|
16 |
||
17 |
return app.exec(); |
|
18 |
} |