Skip to main content
Bumped by Community user
Bumped by Community user
English usage
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

QgsTask never runnedexecuted

I would like to run a QgsTask when iI push a button in a Qgis plugin (3.10). My task is a subclass similar to this example

In the main class of my plugin, iI have added this (connected to the button that works) :

def myBtnAction(self) :
    from .my_task import MyTask
    task = MyTask('run my task', 20)
    QgsApplication.taskManager().addTask(task)

The task is never executed.

QgsTask never runned

I would like to run a QgsTask when i push a button in a Qgis plugin (3.10). My task is a subclass similar to this example

In the main class of my plugin, i have added this (connected to the button that works) :

def myBtnAction(self) :
    from .my_task import MyTask
    task = MyTask('run my task', 20)
    QgsApplication.taskManager().addTask(task)

The task is never executed

QgsTask never executed

I would like to run a QgsTask when I push a button in a Qgis plugin (3.10). My task is a subclass similar to this example

In the main class of my plugin, I have added this (connected to the button that works) :

def myBtnAction(self) :
    from .my_task import MyTask
    task = MyTask('run my task', 20)
    QgsApplication.taskManager().addTask(task)

The task is never executed.

Source Link
TrsBar
  • 523
  • 2
  • 13

QgsTask never runned

I would like to run a QgsTask when i push a button in a Qgis plugin (3.10). My task is a subclass similar to this example

In the main class of my plugin, i have added this (connected to the button that works) :

def myBtnAction(self) :
    from .my_task import MyTask
    task = MyTask('run my task', 20)
    QgsApplication.taskManager().addTask(task)

The task is never executed