This commit is contained in:
zhuzihcu
2023-05-17 13:44:38 +08:00
parent 55e668e95e
commit 68cf87dba9
4 changed files with 32 additions and 24 deletions

View File

@ -35,6 +35,7 @@ int main(int argc, char *argv[])
}
app.setQuitOnLastWindowClosed(false);
QQmlApplicationEngine engine;
FluentUI::initEngine(&engine);
QQmlContext * context = engine.rootContext();
Lang* lang = appInfo->lang();
context->setContextProperty("lang",lang);