This commit is contained in:
zhuzichu 2023-12-05 18:16:06 +08:00
parent 2c16f6f71a
commit 1b4fddec61
2 changed files with 5 additions and 0 deletions

View File

@ -45,5 +45,6 @@ Item {
}
FluApp.initialRoute = "/"
FluApp.run()
__fluentui()
}
}

View File

@ -29,6 +29,10 @@ void FluApp::init(QObject *application){
FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow);
QQmlEngine *engine = qmlEngine(_application);
FramelessHelper::Quick::registerTypes(engine);
QJSEngine * jsEngine = qjsEngine(_application);
std::string jsFunction = R"( (function () { console.log("FluentUI");}) )";
QJSValue function = jsEngine->evaluate(QString::fromStdString(jsFunction));
jsEngine->globalObject().setProperty("__fluentui",function);
}
void FluApp::run(){