选择颜色
要为Properties 视图中的某些组件设置颜色属性,请使用颜色选择器。要打开它,请单击Fill color 或Border color 属性的颜色字段。

选择新颜色
- 在颜色选择器中选择一种颜色 (1)。
- 选择Eye Dropper 图标 (2),然后选择屏幕上可见的任何颜色。
Original 字段显示组件的原始颜色,而New 字段显示当前颜色。
要使颜色完全透明,请选择Transparent 图标 (3)。
要使用预设网络渐变,请选择Gradient Picker 图标 (4)。
使用下拉菜单 (5) 确定要使用的颜色填充类型。您可以选择纯色或渐变色。不同组件的可用渐变类型各不相同。浅灰色列出的项目不适用于所选组件。
选择渐变时,当前颜色条 (6) 会显示渐变和渐变停止。
使用色调滑块 (7) 或 alpha 滑块 (8) 进一步定义新颜色。
选择X 图标关闭颜色选择器。
颜色细节
通过修改取色器Color Details 部分的属性,进一步定义项目中的颜色。

使用Hex 属性手动输入新颜色的十六进制值。使用Hex 属性定义红色、绿色和蓝色的精确值,为项目中使用的颜色创建不同的色调。
默认色值模式为 HSVA(色相-饱和度-数值-α)。使用下拉菜单可将色值模式更改为 RGBA(红-绿-蓝-α)或 HSLA(色相-饱和度-亮度-α)。色调以度数定义,指的是色轮上的不同颜色。饱和度改变颜色的强度。数值决定颜色的亮度。在 HSLA 中,明度表示白色或黑色与颜色的混合程度。
调色板

使用颜色选择器Palette 部分的下拉菜单可更改Palette 类型。Recent 显示项目中最近使用的颜色,而Favorites 则显示您添加到收藏夹的颜色。您可以右键单击Original 、New 或Palette >Recent 颜色缩略图,然后选择Add to Favorites ,将颜色添加到Favorites 中。
从Palette 颜色缩略图中选择一种作为新颜色。
Copyright © The Qt Company Ltd. and other contributors. 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.