路径描边

路径描边示例展示了可与QPainter 一起使用的各种类型的笔。

Qt 为如何处理终点定义了上限样式,为如何将路径段连接在一起定义了连接样式。此外,还包含一组标准的预定义破折号样式,可与QPen 一起使用。

除了QPen 中提供的预定义样式外,我们还演示了直接使用QPainterPathStroker 类来定义自定义破折号样式。启用 "自定义模式"(Custom Pattern)选项即可查看。

示例项目 @ code.qt.io

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