ペイントの例

Qt のペインティングシステムは、ベクターグラフィックス、画像、アウトラインフォントベースのテキストを、アンチエイリアシングを使用してサブピクセル精度でレンダリングし、レンダリング品質を向上させることができます。

これらの例では、単純なプリミティブの描画などの基本的な概念から、変換の使用方法まで、Qt でペイントする際に使用される最も一般的なテクニックを紹介します。

Affine Transformations

QPainter のアフィン変換がどのように機能するかを示します。

Basic Drawing Example

基本的な描画の例では、QPainter クラスを使用して、基本的なグラフィックプリミティブをさまざまなスタイルで表示する方法を示します。

Composition Modes

QPainterでコンポジションモードがどのように機能するかを示します。

Gradients

QPainterでグラデーションがどのように使えるかを示します。

Image Composition Example

QPainterでコンポジションモードがどのように機能するかを示します。

Painter Paths Example

ペインタパスの例では、レンダリング用に複雑な形状を構築するためにペインタパスを使用する方法を示します。

Path Stroking

パスのなぞり描きの例では、QPainter で使用できるさまざまな種類のペンを示します。

Transformations Example

変形(Transformations)の例では、変形がQPainterのグラフィックスプリミティブのレンダリング方法にどのように影響するかを示します。

Vector Deformation

QPainterPathの要素を操作する方法を示します。

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