PySide6.Qt3DAnimation.Qt3DAnimation.QCallbackMapping¶
- class QCallbackMapping¶
- Allows to map the channels within the clip onto an invocation of a callback object. - Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - callback()
- def - channelName()
- def - setCallback()
 - Slots¶- def - setChannelName()
 - Signals¶- 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 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property channelNameᅟ: str¶
 - Access functions:
 - __init__([parent=None])¶
- Parameters:
- parent – - QNode
 
 - callback()¶
- Return type:
- QAnimationCallback
 
 - channelName()¶
- Return type:
- str 
 - See also - setChannelName()
 - Getter of property - channelNameᅟ.- channelNameChanged(channelName)¶
- Parameters:
- channelName – str 
 
 - Notification signal of property - channelNameᅟ.- setCallback(type, callback[, flags=Qt3DAnimation.QAnimationCallback.OnOwningThread])¶
- Parameters:
- type – int 
- callback – - QAnimationCallback
- flags – Combination of - Flag
 
 
 - Associates a - callbackobject with this channel mapping.- Such mappings do not have to have a target object and property name. When the - callbackobject is set, every change in the animated value will lead to invoking the callback’s- valueChangedfunction either on the gui/main thread, or directly on one of the thread pool’s worker thread. This is controlled by- flags.- typespecifies the type (for example, QMetaType::QVector3D, QMetaType::QColor, or QMetaType::Float) of the animated value. When animating node properties this does not need to be provided separately, however it becomes important to supply this when there is only a callback.- Note - A mapping can be associated both with a node property and a callback. It is important however that - typematches the type of the property in this case. Note also that for properties of type QVariant (for example, QParameter::value), the- typeis the type of the value stored in the QVariant.- Note - The - callbackpointer is expected to stay valid while any associated animators are running.- setChannelName(channelName)¶
- Parameters:
- channelName – str 
 - See also - channelName()
 - Setter of property - channelNameᅟ.