本页内容

Qt Quick 示例 - 形状

一个Qt Quick 示例,演示了形状项的使用方法。

包含老虎、文字、渐变、圆角矩形、填充和描边等形状示例的网格

本示例演示了在Qt Quick 中使用Shape 类型的方法。Shapes可高效地在Qt Quick 场景中渲染带描边和填充的直线、曲线及圆弧。

运行示例

您可以通过以下方式运行该示例:

示例项目 @ 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.