iOS 风格

iOS 风格是基于图像资产的 iOS 原生外观风格。更多

导入声明:导入 QtQuick.Controls.iOS
Qt 6.4

详细说明

iOS 风格的设计在外观和感觉上尽可能与 UIKit 中的本地控件相似。大多数控件使用9 补丁图像来绘制其组件,以适应不同大小的控件。对于 UIKit 中没有原生对应控件的控件,iOS 风格会根据iOS 的《人机界面指南》 提供基于颜色和风格的自定义外观。iOS 风格不是原生的 iOS 风格,因此可以在 iOS 以外的平台上运行。不过,就目前而言,它只适用于在 macOS 和 iOS 上运行的应用程序,除了因可用系统字体和字体渲染引擎不同而可能出现的细微差别外,在这两个平台上的外观应该是一样的。

iOS 风格的浅色主题。

iOS 风格的深色主题。

要使用 iOS 风格运行应用程序,请参阅 Qt Quick Controls 中的 "使用风格"。

当前状态

Tumbler 控件尚未实现 iOS 风格,将退回到使用基本风格

自定义

调色板

iOS 风格支持通过palette 属性和qtquickcontrols2.conf文件自定义调色板。与其他样式一样,iOS 样式使用的palette roles 具体内容取决于样式。不过,由于控件的大部分视觉外观(例如:背景)都是通过图像资产管理的,因此只有通常用于文本的角色才会产生影响。

© 2025 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.