diff options
-rw-r--r-- | src/quickcontrols2/qquickstyle.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quickcontrols2/qquickstyle.cpp b/src/quickcontrols2/qquickstyle.cpp index bbbd7fb1..f4e1da00 100644 --- a/src/quickcontrols2/qquickstyle.cpp +++ b/src/quickcontrols2/qquickstyle.cpp @@ -184,8 +184,11 @@ struct QQuickStyleSpec // Find the config file. resolveConfigFilePath(); - if (style.isEmpty()) { - qCDebug(lcQtQuickControlsStyle) << "no style was specified; checking if we have an appropriate style for this platform"; + if (style.isEmpty() || style.toLower() == QStringLiteral("default")) { + style.clear(); + + qCDebug(lcQtQuickControlsStyle) << "no style (or Default) was specified;" + << "checking if we have an appropriate style for this platform"; #if defined(Q_OS_MACOS) style = QLatin1String("macOS"); #elif defined(Q_OS_WINDOWS) |