Bilby/QtDemo/main.cpp
amass d21a956d6d
Some checks failed
Deploy Applications / PullDocker (push) Failing after 0s
Deploy Applications / Build (push) Failing after 7s
Windows CI / build (push) Failing after 52s
add qtbuild.
2024-08-10 12:32:28 +08:00

19 lines
441 B
C++

#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
QObject::connect(
&engine,
&QQmlApplicationEngine::objectCreationFailed,
&app,
[]() { QCoreApplication::exit(-1); },
Qt::QueuedConnection);
engine.loadFromModule("QtDemo", "Main");
return app.exec();
}