The iOS Style is a native-looking style for iOS based on image assets. More...
|Import Statement:||import QtQuick.Controls.iOS|
- theme : enumeration
The iOS style is designed to look and feel as similar as possible to the native controls in UIKit. Most of the controls make use of 9-patch images to draw their components, in order to accommodate controls of varying sizes. For controls that do not have a native counterpart in UIKit, the iOS style provides a custom look based on colors and styles following iOS' Human Interface Guidelines . The iOS style is not a native iOS style, and as such, can run on platforms other than iOS. However, for the time being, it is made available only for applications running on macOS and iOS and should look the same on both platforms, besides minor differences that may occur due to differences in available system fonts and font rendering engines.
The iOS style in light theme
The iOS style in dark theme
To run an application with the iOS style, see Using Styles in Qt Quick Controls.
The iOS style is currently in Tech Preview and is under development. Some controls are not yet supported. Those controls are: BusyIndicator, DelayButton, Dialog, DialogButtonBox, SelectionRectangle and Tumbler. Those will fall back to use the Basic Style.
The iOS style supports palette customization via the palette property and the qtquickcontrols2.conf file. As with other styles, the exact palette roles that the iOS style uses are style-dependent. However, as most of the visual appearance of controls (for example: backgrounds) is managed through image assets, only the roles that are typically used for text will have an effect.
Attached Property Documentation
IOS.theme : enumeration
This attached property holds whether the theme is light or dark.
|Light theme (default)|
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.