パスのストローク
「パスのストローク」の例では、QPainter で使用できるさまざまな種類のペンを紹介しています。

Qtでは、端点の処理方法を定義するキャップスタイルと、パスセグメントの接続方法を定義するジョインスタイルが定義されています。また、QPen で使用できる、あらかじめ定義された標準的なダッシュパターンのセットも用意されています。
QPen で利用可能な定義済みパターンに加え、カスタムダッシュパターンを定義するために使用できるQPainterPathStroker クラスの直接的な使用方法についても紹介します。これは、「カスタムパターン」オプションを有効にすることで確認できます。
© 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.