QAspectJob#

The base class for jobs executed in an aspect. More

Synopsis#

Virtual functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

class PySide6.Qt3DCore.Qt3DCore.QAspectJob#
PySide6.Qt3DCore.Qt3DCore.QAspectJob.isRequired()#
Return type:

bool

Should return true (default) if the job has actually something to do. If returning false, the job will not be scheduled (but it’s dependencies will be).

PySide6.Qt3DCore.Qt3DCore.QAspectJob.postFrame(aspectEngine)#
Parameters:

aspectEnginePySide6.Qt3DCore.Qt3DCore.QAspectEngine

Called in the main thread when all the jobs have completed. This is a good point to push changes back to the frontend. aspectEngine is the engine responsible for the run loop.

abstract PySide6.Qt3DCore.Qt3DCore.QAspectJob.run()#

Executes the job. This is called on a separate thread by the scheduler.