#include #include #include #include "ComboBoxHandler.h" int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); auto handler = new ComboBoxHandler(); qmlRegisterSingletonInstance("ComboBoxHandler", 1, 0, "ComboBoxHandler", handler); QQmlApplicationEngine engine; QObject::connect(&engine, &QQmlApplicationEngine::objectCreationFailed, &app, []() { QCoreApplication::exit(-1); }, Qt::QueuedConnection); const QUrl url(u"qrc:/TestBench/main.qml"_qs); engine.load(url); return app.exec(); }