En esta página

Qt3DCore::QAspectJob Class

class Qt3DCore::QAspectJob

La clase base para los trabajos que se ejecutan en un aspecto. Más...

Encabezado: #include <Qt3DCore/QAspectJob>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake: QT += 3dcore
Estado: Obsoleta

Esta clase está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.

Funciones públicas

void addDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
const std::vector<QWeakPointer<Qt3DCore::QAspectJob>> &dependencies() const
virtual bool isRequired()
virtual void postFrame(Qt3DCore::QAspectEngine *aspectEngine)
void removeDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
virtual void run() = 0

Descripción detallada

Documentación de las funciones de miembro

void QAspectJob::addDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)

Añade « dependency » a la tarea de aspecto.

const std::vector<QWeakPointer<Qt3DCore::QAspectJob>> &QAspectJob::dependencies() const

Devuelve las dependencias de la tarea de aspecto.

[virtual] bool QAspectJob::isRequired()

Debe devolver «true» (por defecto) si la tarea tiene realmente algo que hacer. Si devuelve «false», la tarea no se programará (pero sí se programarán sus dependencias).

[virtual] void QAspectJob::postFrame(Qt3DCore::QAspectEngine *aspectEngine)

Se invoca en el hilo principal cuando se han completado todas las tareas. Este es un buen momento para enviar los cambios al frontend. ` aspectEngine ` es el motor responsable del bucle de ejecución.

void QAspectJob::removeDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)

Elimina el « dependency » indicado de la tarea de aspecto.

[pure virtual] void QAspectJob::run()

Ejecuta el trabajo. El programador lo ejecuta en un hilo independiente.

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