We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a21299 commit 68cb00eCopy full SHA for 68cb00e
1 file changed
src/main.cpp
@@ -305,10 +305,14 @@ int main(int argc, char *argv[])
305
#endif // defined(Q_OS_WIN)
306
307
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
308
- QQuickStyle::setStyle(QStringLiteral("FluentWinUI3"));
+ if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))
309
+ {
310
+ QQuickStyle::setStyle(QStringLiteral("FluentWinUI3"));
311
+ }
312
#else
313
/* Try to avoid overriding the default theme unless it's org.kde.desktop */
- if (QQuickStyle::name() == "org.kde.desktop")
314
+ if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE") &&
315
+ QQuickStyle::name() == "org.kde.desktop")
316
{
317
QQuickStyle::setStyle(QStringLiteral("org.kde.breeze"));
318
QQuickStyle::setFallbackStyle(QStringLiteral("org.kde.desktop"));
0 commit comments