PySide6.QtQuick3D.QQuick3DObject¶
- class QQuick3DObject¶
- Base class of all 3D nodes and resources. More… - Inherited by: - QQuick3DTextureData,- QQuick3DRenderExtension,- QQuick3DInstancing,- QQuick3DGeometry- Synopsis¶- Properties¶- Methods¶- def - childItems()
- def - parentItem()
- def - setState()
- def - state()
 - Virtual methods¶- def - markAllDirty()
- def - preSync()
 - Slots¶- def - setParentItem()
- def - update()
 - Signals¶
- def - parentChanged()
- def - stateChanged()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- Object3D is the base class for all Qt Quick 3D scene objects. Currently the types available in C++ are: - Both of these types are resource objects which directly inherit - QQuick3DObject.- It should not be necessary to use - QQuick3DObjectdirectly anywhere currently because it is just an interface for supporting spatial items and resources in a 3D scene, as well as exposing similar functionality as QQuickItem for 3D scene content.- class ItemChange¶
 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property parentᅟ: QQuick3DObject¶
 - This property holds the parent of the Object3D in a 3D scene. - Note - An Object3D ‘s parent may not necessarily be the same as its object parent. This is necessary because the object parent may be an item that is not of type Object3D , for example the root object in a scene. - Note - Currently for 3D items to be correctly handled by the scene manager when parenting 3D objects from C++ it is necessary to call QQuick3DObject::setParentItem before the QObject::setParent. This requirement is likely to change in a future release though. - QQuick3DObject *newItem = new QQuick3DObject(); newItem->setParentItem(parentItem); newItem->setParent(parentItem); - Access functions:
 - property stateᅟ: str¶
 - This property holds the name of the current state of the object. - If the item is in its default state, that is, no explicit state has been set, then this property holds an empty string. Likewise, you can return an item to its default state by setting this property to an empty string. - See also - Qt Quick States- Access functions:
- Signal - stateChanged()
 
 - childItems()¶
- Return type:
- .list of QQuick3DObject 
 
 - childrenChanged()¶
 - isComponentComplete()¶
- Return type:
- bool 
 
 - markAllDirty()¶
 - parentChanged()¶
 - Notification signal of property - parentᅟ.- parentItem()¶
- Return type:
 - See also 
 - Getter of property - parentᅟ.- preSync()¶
 - setParentItem(parentItem)¶
- Parameters:
- parentItem – - QQuick3DObject
 - See also 
 - Setter of property - parentᅟ.- Setter of property - stateᅟ.- state()¶
- Return type:
- str 
 - See also 
 - Getter of property - stateᅟ.- stateChanged()¶
 - Notification signal of property - stateᅟ.- update()¶