Class: QgsTaskWithSerialSubTasks¶
A task that is composed of sub-tasks to be executed in a serial way.
This may be useful for example to add several layers in a single target dataset which does not support concurrent updates.
Added in version 3.36.
Class Hierarchy¶
Base classes¶
Abstract base class for long running background tasks. |
|
Methods
Add a subtask and transfer its ownership |
- class qgis.core.QgsTaskWithSerialSubTasks[source]¶
Bases:
QgsTask
- __init__(desc: str | None = '')
Constructor
- Parameters:
desc (Optional[str] = '')
- addSubTask(self, subTask: QgsTask | None)[source]¶
Add a subtask and transfer its ownership
The parent task must be added to a
QgsTaskManager
for subtasks to be utilized. Subtasks should not be added manually to aQgsTaskManager
, rather, only the parent task should be added to the manager.For now, subtasks can NOT be nested.
- Parameters:
subTask (Optional[QgsTask])