このページでは

Qt Canvas2D QML types

このモジュールはテクノロジープレビュー版であり、仕様が変更される可能性があります。

このモジュールは Qt 6.12 で導入されました。

この QML モジュールには、Qt Quick 用のCanvas2D 要素が含まれています。Canvas2D を使用するには、次の行でモジュールをインポートしてください:

import QtCanvas2D

Canvas2D QML タイプ

Canvas2D

JavaScript による描画を可能にする 2D キャンバスアイテムを提供します

Canvas2DContext

Canvas2Dアイテム上に描画するための2Dコンテキストを提供します

boxgradient2d

QCanvasBoxGradient に対応する boxgradient2d タイプを提供します

boxshadow2d

QCanvasBoxShadow に対応する boxshadow2d タイプを提供します

conicalgradient2d

QCanvasConicalGradient と互換性のある conicalgradient2d タイプを提供します

gridpattern2d

QCanvasGridPattern に対応する gridpattern2d タイプを提供します

imagepattern2d

QCanvasImagePattern に対する imagepattern2d 型のマッピングを提供します

lineargradient2d

QCanvasLinearGradient に対して lineargradient2d 型のマッピングを提供します

path2d

QCanvasPath に対応するペインターパスコンテナである path2d タイプを提供します

radialgradient2d

QCanvasRadialGradient に対応する radialgradient2d 型を提供します。

transform2d

QTransform に対応する transform2d 型(3x3 の 2D 変換行列)を提供します

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