iOS: use iOS style by default on iOS

When running an application on iOS, use the iOS
style by default, rather than Basic.

Change-Id: I355277f20e25720f899806ea40ed6af0da1e3033
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
Richard Moe Gustavsen 2022-08-19 13:59:50 +02:00
parent 33fbb6ce74
commit 913cdef802
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@
\list
\li Android: \l {Material Style}
\li iOS: \l {iOS Style}
\li Linux: \l {Fusion Style}
\li macOS: \l {macOS Style}
\li Windows: \l {Windows Style}

View File

@ -170,6 +170,8 @@ struct QQuickStyleSpec
style = QLatin1String("Material");
#elif defined(Q_OS_LINUX)
style = QLatin1String("Fusion");
#elif defined(Q_OS_IOS)
style = QLatin1String("iOS");
#endif
if (!style.isEmpty())
qCDebug(lcQtQuickControlsStyle) << "using" << style << "as a default";