FluentWinUI3 样式
FluentWinUI3 样式是一种现代且具有原生外观的样式,专为运行 Windows 11 及以上版本的平台设计。更多...
| 导入语句: | import QtQuick.Controls.FluentWinUI3 |
| 自: | Qt 6.8 |
详细说明
FluentWinUI3 样式从 Fluent UI 设计和 WinUI3 框架中汲取灵感。它在大部分视觉元素中使用图像资源,同时遵循 Windows 系统上配置的全局主题颜色和配色方案。
FluentWinUI3 样式并非原生样式,可在所有受支持的平台上运行,且在各平台上的显示效果基本一致。由于可用系统字体和字体渲染引擎的差异,可能会出现细微差别。
FluentWinUI3 样式的浅色主题。 |
FluentWinUI3 样式的深色主题。 |
若要运行采用 FluentWinUI3 样式的应用程序,请参阅《Qt Quick Controls 》中的“使用样式”部分。
当前状态
FluentWinUI3 样式目前正在开发中,部分控件尚不支持。这些控件包括:Dial 、Drawer 、HorizontalHeaderView 、SplitView 、StackView 、SwipeDelegate 、SwipeView 、TreeViewDelegate 、Tumbler 以及VerticalHeaderView 。这些控件将回退为使用Fusion 样式。
自定义
调色板
FluentWinUI3 样式支持通过 `palette ` 属性以及 `qtquickcontrols2.conf` 文件自定义配色方案。与其他样式一样,FluentWinUI3 样式所使用的具体 `palette roles ` 取决于样式本身。
注意:由于 该样式集成了图像资源,控件的某些元素可能无法自定义。
© 2026 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.

