在本页

ItemChangeData Union

union QQuickItem::ItemChangeData

为QQuickItem::itemChange() 函数添加补充信息。更多

公共变量

bool boolValue
QQuickItem *item
qreal realValue
QQuickWindow *window

详细说明

该类中每个成员的含义由更改类型定义。

另请参阅 QQuickItem::ItemChange 。

成员变量文档

bool ItemChangeData::boolValue

已更改的布尔值:visible,enabled,activeFocus 或antialiasing 。

另请参阅 QQuickItem::ItemChange 。

QQuickItem *ItemChangeData::item

作为child 添加或删除的项目,或新的parent 。

另请参阅 QQuickItem::ItemChange 。

qreal ItemChangeData::realValue

已更改的数值:opacity,rotation, 或device pixel ratio 。

另请参阅 QQuickItem::ItemChange 。

QQuickWindow *ItemChangeData::window

显示项目的window ,如果项目已从窗口中删除,则nullptr 。

另请参阅 QQuickItem::ItemChange 。

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