- Qt 5.15
- Qt Quick
- QML Types
- Obsolete Members for Canvas
- Qt 5.15.18 Reference Documentation

# Obsolete Members for Canvas

The following members of QML type Canvas are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Properties

- canvasWindow : rect`(obsolete)`
- tileSize : size`(obsolete)`

## Property Documentation

canvasWindow : rect

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Holds the current canvas visible window.

By default the canvasWindow size is the same as the Canvas item size with the top-left point as (0, 0).

If the canvasSize is different to the Canvas item size, the Canvas item can display different visible areas by changing the canvas windowSize and/or position.

This feature is incomplete. For details, see QTBUG-33129

See also canvasSize and tileSize.

tileSize : size

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Holds the canvas rendering tile size.

The Canvas item enters tiled mode by setting canvasSize, tileSize and the canvasWindow. This can improve rendering performance by rendering and caching tiles instead of rendering the whole canvas every time.

Memory will be consumed only by those tiles within the current visible region.

By default the tileSize is the same as the canvasSize.

This feature is incomplete. For details, see QTBUG-33129.

See also canvasSize and canvasWindow.