パスのストローク

パスのなぞり書きの例では、QPainter で使用できる様々なタイプのペンを示しています。

Qt では、終点をどのように扱うかのためのキャップスタイルと、パスセグメントをどのように結合するかのための結合スタイルが定義されています。また、QPen で使用できる、定義済みのダッシュパターンの標準セットも含まれています。

QPen で利用可能な定義済みパターンに加えて、QPainterPathStroker クラスを直接使用して、カスタム・ダッシュ・パターンを定義することもできます。カスタムパターン・オプションを有効にすると、これを見ることができます。

サンプルプロジェクト @ 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.