QAnimationCallback Class

class Qt3DAnimation::QAnimationCallback

Stellt ein Animations-Callback-Objekt dar. Mehr...

Kopfzeile: #include <QAnimationCallback>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Status: Veraltet

Öffentliche Typen

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

Öffentliche Funktionen

virtual void valueChanged(const QVariant &value) = 0

Detaillierte Beschreibung

Dokumentation der Mitgliedstypen

enum QAnimationCallback::Flag
flags QAnimationCallback::Flags

Flags, die angeben, wie die Funktion valueChanged() aufgerufen wird.

KonstanteWertBeschreibung
Qt3DAnimation::QAnimationCallback::OnOwningThread0x0Callback-Funktion wird auf dem eigenen (GUI oder Haupt-) Thread aufgerufen.
Qt3DAnimation::QAnimationCallback::OnThreadPool0x01Die Callback-Funktion wird auf dem Worker-Thread des Thread-Pools aufgerufen.

Der Typ Flags ist ein Typedef für QFlags<Flag>. Er speichert eine OR-Kombination von Flag-Werten.

Dokumentation der Mitgliedsfunktionen

[pure virtual] void QAnimationCallback::valueChanged(const QVariant &value)

Callback-Funktion, die bei Änderungen in der animierten value ausgelöst wird.

Siehe auch QCallbackMapping::setCallback().

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