Qt3DCore::QAspectJob Class
class Qt3DCore::QAspectJobLa clase base para los trabajos ejecutados en un aspecto. Más...
| Cabecera: | #include <Qt3DCore/QAspectJob> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore)target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| Status: | Obsoleto |
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 |
Documentación de las funciones de los miembros
void QAspectJob::addDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
Añade dependency al trabajo de aspecto.
const std::vector<QWeakPointer<Qt3DCore::QAspectJob>> &QAspectJob::dependencies() const
Devuelve las dependencias del trabajo de aspecto.
[virtual] bool QAspectJob::isRequired()
Debe devolver true (por defecto) si el trabajo tiene realmente algo que hacer. Si devuelve false, el trabajo no se programará (pero sí sus dependencias).
[virtual] void QAspectJob::postFrame(Qt3DCore::QAspectEngine *aspectEngine)
Llamado en el hilo principal cuando todos los trabajos se han completado. Este es un buen momento para devolver los cambios al frontend. aspectEngine es el motor responsable del bucle de ejecución.
void QAspectJob::removeDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
Elimina el dependency dado del trabajo de aspecto.
[pure virtual] void QAspectJob::run()
Ejecuta el trabajo. El programador la ejecuta en un subproceso 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.