Auf dieser Seite

Qt3DAnimation::QAnimationCallback Class

class Qt3DAnimation::QAnimationCallback

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

Header: #include <qanimationcallback.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Status: Technologievorschau

Diese Klasse befindet sich in der Technologievorschau und kann sich noch ändern.

Öffentliche Typen

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

Öffentliche Funktionen

virtual void valueChanged(const QVariant &value) = 0

Ausführliche Beschreibung

Dokumentation zum Mitgliedstyp

enum QAnimationCallback::Flag
flags QAnimationCallback::Flags

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

KonstanteWertBeschreibung
Qt3DAnimation::QAnimationCallback::OnOwningThread0x0Die Callback-Funktion wird im besitzenden Thread (GUI- oder Haupt-Thread) aufgerufen.
Qt3DAnimation::QAnimationCallback::OnThreadPool0x01Die Callback-Funktion wird im Worker-Thread des Thread-Pools aufgerufen.

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

Dokumentation der Mitgliedsfunktionen

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

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

Siehe auch ` QCallbackMapping::setCallback()`.

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