Obsolete Members for Canvas
QML 类型Canvas的以下成员已被废弃。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议不要在新代码中使用它们。
属性
- canvasWindow : rect
(deprecated) - tileSize : size
(deprecated)
物业文件
canvasWindow : rect [deprecated]
此属性已弃用。我们强烈建议不要在新代码中使用它。
保存当前画布的可见窗口。
默认情况下,canvasWindow 的大小与 Canvas 项的大小相同,其左上角坐标为 (0, 0)。
如果canvasSize 与Canvas项的尺寸不同,则可以通过更改 的尺寸和/或位置,使Canvas项显示不同的可见区域。
此功能尚不完善。详情请参阅 QTBUG-33129。
另请参阅 canvasSize 和tileSize 。
tileSize : size [deprecated]
此属性已弃用。我们强烈建议不要在新代码中使用它。
用于存储画布的渲染瓦片大小。
通过设置canvasSize 、tileSize和canvasWindow ,Canvas项将进入瓦片渲染模式。这种方式通过渲染并缓存瓦片,而非每次都渲染整个画布,从而可以提升渲染性能。
仅当前可见区域内的瓦片会占用内存。
默认情况下,tileSize 与canvasSize 相同。
此功能尚不完善。详情请参阅 QTBUG-33129。
另请参阅 ` canvasSize ` 和 `canvasWindow`。
© 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.