tools/hhtracer/main.cpp
author unC0Rr
Fri, 10 Jan 2025 17:37:34 +0100
changeset 16084 2d65bd46c92f
permissions -rw-r--r--
Start work on hedgehog tracer

#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>

#include "tracer.h"

int main(int argc, char *argv[]) {
  QGuiApplication app(argc, argv);

  QQmlApplicationEngine engine;

  // Tracer tracer;
  // engine.rootContext()->setContextProperty(QStringLiteral("tracer"),
  // &tracer);

  QObject::connect(
      &engine, &QQmlApplicationEngine::objectCreationFailed, &app,
      []() { QCoreApplication::exit(-1); }, Qt::QueuedConnection);
  engine.loadFromModule("hhtracer", "Main");

  return app.exec();
}