In questa pagina

Qt3DAnimation::QAnimationClipLoader Class

class Qt3DAnimation::QAnimationClipLoader

Consente di caricare i dati di animazione dei fotogrammi chiave da un file. Maggiori informazioni...

Intestazione: #include <qanimationcliploader.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Eredita da: Qt3DAnimation::QAbstractAnimationClip
Stato: Anteprima tecnologica

Questa classe è in anteprima tecnologica ed è soggetta a modifiche.

Tipi pubblici

enum Status { NotReady, Ready, Error }

Proprietà

Funzioni pubbliche

QUrl source() const
Qt3DAnimation::QAnimationClipLoader::Status status() const

Slot pubblici

void setSource(const QUrl &source)

Segnali

void sourceChanged(const QUrl &source)
void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

Descrizione dettagliata

Documentazione sui tipi dei membri

enum QAnimationClipLoader::Status

Questa enumerazione identifica lo stato di una clip di animazione.

CostanteValoreDescrizione
Qt3DAnimation::QAnimationClipLoader::NotReady0La clip non è stata ancora caricata
Qt3DAnimation::QAnimationClipLoader::Ready1La clip è stata caricata con successo
Qt3DAnimation::QAnimationClipLoader::Error2Si è verificato un errore durante il caricamento del video

Documentazione sulle proprietà

source : QUrl

Contiene l'URL di origine da cui caricare la clip di animazione. Attualmente sono supportati i formati di file di animazione glTF2 e il formato JSON nativo Qt 3D.

Nel caso in cui un file contenga più animazioni, è possibile selezionare quale animazione caricare tramite i parametri di query nell'URL di origine. I parametri di query accettati sono `animationIndex` e `animationName`. Se vengono specificati entrambi, `animationName` viene ignorato.

Se un file contiene una sola animazione, non è necessario specificare né animationIndex né animationName. Si utilizza semplicemente l’unica animazione disponibile.

Funzioni di accesso:

QUrl source() const
void setSource(const QUrl &source)

Segnale Notifier:

void sourceChanged(const QUrl &source)

[read-only] status : Status

Questa proprietà contiene lo stato della clip di animazione.

Funzioni di accesso:

Qt3DAnimation::QAnimationClipLoader::Status status() const

Segnale di notifica:

void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

Documentazione delle funzioni membro

Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const

Restituisce lo stato del clip di animazione.

Nota: Funzionegetter per la proprietà status.

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