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