Kylin/Examples/FluentWindow/main.cpp

18 lines
557 B
C++
Raw Normal View History

2024-08-20 23:58:02 +08:00
#include "BoostLog.h"
#include "Rectangle.h"
#include <QGuiApplication>
#include <QQmlApplicationEngine>
2024-08-31 04:13:21 +08:00
#include <QQuickStyle>
2024-08-20 23:58:02 +08:00
int main(int argc, char *argv[]) {
LOG(info) << "app start...";
QGuiApplication app(argc, argv);
2024-08-31 04:13:21 +08:00
QQuickStyle::setStyle("Basic");
2024-08-20 23:58:02 +08:00
QQmlApplicationEngine engine;
QObject::connect(
&engine, &QQmlApplicationEngine::objectCreationFailed, &app, []() { QCoreApplication::exit(-1); },
Qt::QueuedConnection);
engine.loadFromModule("FluentWindow", "Main");
return app.exec();
}