Obsolete Members for Canvas

QML 类型Canvas的以下成员已被弃用。提供它们是为了让旧源代码继续工作。我们强烈建议不要在新代码中使用它们。

属性

属性文档

canvasWindow : rect [deprecated]

该属性已被弃用。我们强烈建议不要在新代码中使用它。

保存当前画布的可见窗口。

默认情况下,canvasWindow 的大小与画布项的大小相同,左上角点为 (0,0)。

如果canvasSize 与画布项大小不同,则画布项可以通过更改画布窗口大小和/或位置来显示不同的可见区域。

此功能尚不完整。有关详细信息,请参阅 QTBUG-33129。

另请参阅 canvasSizetileSize


tileSize : size [deprecated]

该属性已被弃用。我们强烈建议不要在新代码中使用它。

保持画布渲染平铺尺寸。

通过设置canvasSize 、tileSize 和canvasWindow ,画布项将进入平铺模式。这可以通过渲染和缓存平铺来提高渲染性能,而不是每次都渲染整个画布。

内存将只被当前可见区域内的瓷砖所占用。

默认情况下,tileSize 与canvasSize 相同。

此功能尚未完成。有关详细信息,请参阅 QTBUG-33129。

另请参见 canvasSizecanvasWindow


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