Kylin/Examples/FluentWindow/main.cpp
2024-08-20 23:58:02 +08:00

16 lines
496 B
C++

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