![]() In this example RandomIntegerSumTask extends QgsTask and will The status of tasks can be monitored using QgsTask and ![]() The scheduling of the tasks is influenced by the task priority, which That task to the manager, and the manager will cleanup and delete The addTask() function of the task manager.Īdding a task to the manager automatically transfers ownership of Once the task has been created it can be scheduled for running using If a layer on which a task depends is not available, the task will be If a task depends on a layer being available, this can be stated If a task on which another task depends is canceled, the dependentĬircular dependencies can make deadlocks possible, so be careful. ![]() Wherever possible dependencies will be executed in parallel in order When a dependency is stated, the task manager will automaticallyĭetermine how these dependencies will be executed. Qt widgets must only be accessed or modified from the main thread.ĭata that is used in a task must be copied before the task is started.Īttempting to use them from background threads will result inĭependencies between tasks can be described using the addSubTask() Like creating new widgets or interacting with existing widgets. QgsVectorLayer, QgsProject or perform any GUI based operations ![]() Use any QObject that lives on the main thread, such as accessing Task from a processing algorithmĪny background task (regardless of how it is created) must NEVER Tasks - doing heavy work in the background Expressions, Filtering and Calculating Values
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |