On this page

Qt Canvas2D QML types

This module is in technology preview and is subject to change.

This QML module contains a Canvas2D element for Qt Quick. To use the Canvas2D, import the module with the following line:

import QtCanvas2D

Canvas2D QML Types

Canvas2D

Provides a 2D canvas item enabling drawing via JavaScript

Canvas2DContext

Provides 2D context for drawing on a Canvas2D item

Canvas2DGradient

Provides an opaque Canvas2DGradient interface

Canvas2DPath2D

Provides Path2D object, matching to QCanvasPath

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