You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
works fine from Python console, but does not work from the QAction's slot.
Test plugin attached. Install and activate this plugin, run task from the menu "Plugins → Test → Test". Nothing happens, task does not started. Now open init.py and uncomment line 55 which just adds some dummy debug message to the log. Restart QGIS and run plugin again, task will be added and executed.
There is also another issue — finished() is not executed (probably because Python object is garbage collected when out of scope). To test this uncomment lines 52-53 in the init.py and run plugin. After task completes mo messages will be added to the message log.
Hi Alexander, I don't know if this is or not a bug, but I would have defined the application taskmanager on @init@ method of the testplugin. Code below works as expected.
Author Name: Alexander Bruy (@alexbruy)
Original Redmine Issue: 19267
Affected QGIS version: 3.3(master)
Redmine category:python_bindings_/_sipify
Seems adding tasks to the task manager from Python using
works fine from Python console, but does not work from the QAction's slot.
Test plugin attached. Install and activate this plugin, run task from the menu "Plugins → Test → Test". Nothing happens, task does not started. Now open init.py and uncomment line 55 which just adds some dummy debug message to the log. Restart QGIS and run plugin again, task will be added and executed.
The text was updated successfully, but these errors were encountered: