在本页

ItemSpy QML Type

提供一种跟踪物品的世界尺寸并与之绑定的方法。更多

Import Statement: import QtQuick.VectorImage.Helpers
Since: Qt 6.11

属性

详细说明

该类型由VectorImage 使用。它可以调整后处理效果的纹理尺寸,使其自动与项目子树的屏幕尺寸相匹配。

属性文档

requiredTextureSize : size

在不产生缩放伪影的情况下渲染此物品的宽度和高度所需的纹理尺寸。这包括当前变换和高分辨率缩放。

注意: 返回的大小永远不会超过支持的最大纹理大小,也永远不会小于1x1

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