Qt Graphs 主题概述

主题是一组内置的与 UI 样式相关的设置集合,适用于图表的所有视觉元素,例如元素的颜色、字体和可见性,以及光线强度和环境光。

Qt Graphs 提供了以下预定义主题,可作为自定义主题的基础:

  • QtGreen是一个以绿色为基色的主题。
  • QtGreenNeon是一种以霓虹绿为基色的主题。
  • MixSeries是一种以多种颜色系列混合为基色的主题。
  • OrangeSeries是一种以橙色为基色的主题。
  • YellowSeries是一款以黄色为基色的主题。
  • BlueSeries是一款以蓝色为基调的主题。
  • PurpleSeries是一款以紫色为基调的主题。
  • GreySeries是一款以灰色为基调的主题。
  • “用户自定义”主题是专为自定义而设计的。

用户还可以从头开始创建自定义主题。

如果一个图表显示了来自多个数据系列的数据,则可以针对每个系列分别指定某些设置。例如,可以为 3D 图表的不同图层指定不同的渐变,使其看起来更逼真。有关示例,请参阅“曲面图图库”。

详情请参阅GraphsTheme 。

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