In questa pagina

Qt Canvas2D QML types

Questo modulo è in fase di anteprima tecnica ed è soggetto a modifiche.

Questo modulo è stato introdotto in Qt 6.12.

Questo modulo QML contiene un elemento ` Canvas2D ` per ` Qt Quick`. Per utilizzare ` Canvas2D`, importare il modulo con la seguente riga:

import QtCanvas2D

Tipi QML di Canvas2D

Canvas2D

Fornisce un elemento canvas 2D che consente di disegnare tramite JavaScript

Canvas2DContext

Fornisce un contesto 2D per disegnare su un elemento `Canvas2D`

boxgradient2d

Fornisce un tipo `boxgradient2d` corrispondente a `QCanvasBoxGradient`

boxshadow2d

Fornisce il tipo `boxshadow2d` corrispondente a `QCanvasBoxShadow`

conicalgradient2d

Fornisce il tipo `conicalgradient2d` corrispondente a `QCanvasConicalGradient`

gridpattern2d

Fornisce il tipo `gridpattern2d` corrispondente a `QCanvasGridPattern`

imagepattern2d

Fornisce la corrispondenza del tipo `imagepattern2d` a `QCanvasImagePattern`

lineargradient2d

Fornisce il tipo `lineargradient2d` corrispondente a `QCanvasLinearGradient`

path2d

Fornisce il tipo `path2d`, un contenitore di tracciati di disegno corrispondente a `QCanvasPath`

radialgradient2d

Fornisce il tipo `radialgradient2d` corrispondente a `QCanvasRadialGradient`

transform2d

Fornisce il tipo `transform2d`, una matrice di trasformazione 2D 3x3, corrispondente a `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.