Sur cette page

Qt Canvas2D QML types

Ce module est en phase d'aperçu technologique et est susceptible d'être modifié.

Ce module a été introduit dans Qt 6.12.

Ce module QML contient un élément « Canvas2D » destiné à « Qt Quick ». Pour utiliser « Canvas2D », importez le module à l'aide de la ligne suivante :

import QtCanvas2D

Types QML Canvas2D

Canvas2D

Fournit un élément de canevas 2D permettant de dessiner via JavaScript

Canvas2DContext

Fournit un contexte 2D pour dessiner sur un élément Canvas2D

boxgradient2d

Fournit un type `boxgradient2d` correspondant à `QCanvasBoxGradient`

boxshadow2d

Fournit un type `boxshadow2d` correspondant à `QCanvasBoxShadow`

conicalgradient2d

Fournit le type `conicalgradient2d` correspondant à `QCanvasConicalGradient`

gridpattern2d

Fournit un type `gridpattern2d` correspondant à `QCanvasGridPattern`

imagepattern2d

Fournit une correspondance de type `imagepattern2d` avec `QCanvasImagePattern`

lineargradient2d

Fournit une correspondance de type `lineargradient2d` avec `QCanvasLinearGradient`

path2d

Fournit le type `path2d`, un conteneur de chemin de dessin correspondant à `QCanvasPath`

radialgradient2d

Fournit le type « radialgradient2d » correspondant à QCanvasRadialGradient

transform2d

Fournit le type `transform2d`, une matrice de transformation 2D 3x3, correspondant à `QTransform`

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