This commit is contained in:
朱子楚\zhuzi 2023-10-10 20:04:26 +08:00
parent e8a77613bc
commit 20d52ac49a

View File

@ -36,7 +36,7 @@ int main(int argc, char *argv[])
QGuiApplication::setOrganizationDomain("https://zhuzichu520.github.io"); QGuiApplication::setOrganizationDomain("https://zhuzichu520.github.io");
QGuiApplication::setApplicationName("FluentUI"); QGuiApplication::setApplicationName("FluentUI");
SettingsHelper::getInstance()->init(argv); SettingsHelper::getInstance()->init(argv);
if(SettingsHelper::getInstance()->getReander()=="software"){ if(SettingsHelper::getInstance()->getRender()=="software"){
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
QQuickWindow::setGraphicsApi(QSGRendererInterface::Software); QQuickWindow::setGraphicsApi(QSGRendererInterface::Software);
#elif (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) #elif (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))