UI 组件:刻度盘控件示例

“刻度盘控件示例”演示了如何创建车速表式的刻度盘。

本示例演示了如何创建指针式控件。它结合了Image 元素、Rotation 变换以及SpringAnimation 行为,从而生成一个交互式的车速表样式指针控件。

车速表表盘,指针位于60处,显示0-120刻度,并配有滑动控制装置

示例项目 @ code.qt.io

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