描画の例

Qtの描画システムは、アンチエイリアシングを使用してレンダリング品質を向上させ、サブピクセル精度でベクターグラフィックス、画像、およびアウトラインフォントベースのテキストをレンダリングすることができます。
これらの例は、単純なプリミティブの描画といった基本的な概念から変形の使用に至るまで、Qt での描画で使用される最も一般的な手法を示しています。
QPainter におけるアフィン変換の仕組みを説明します。 | |
「Basic Drawing」の例では、QPainter クラスを使用して、基本的なグラフィックプリミティブをさまざまなスタイルで表示する方法を示しています。 | |
QPainter における合成モードの仕組みを説明します。 | |
QPainter でグラデーションを使用する方法を示します。 | |
QPainter における合成モードの仕組みを示します。 | |
「Painter Paths」の例では、ペインターパスを使用して、レンダリング用の複雑な形状を構築する方法を示しています。 | |
「Path Stroking」の例では、QPainter で使用できるさまざまな種類のペンを示しています。 | |
「Transformations」の例では、変形が QPainter によるグラフィックプリミティブの描画にどのような影響を与えるかを示しています。 | |
QPainterPath の要素を操作する方法を示します。 |
© 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.