Skip to main content

Questions tagged [qthread]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
134 views

Responsive QGIS main window while running a QGIS plugin with GUI

I'm writing my first QGIS plugin (QGIS version >= 3.18). I created a GUI with QT Designer and then a basic python code to load plugin when QGIS starts: file __init__.py: def classFactory(iface): ...
Angelo's user avatar
  • 11
0 votes
1 answer
335 views

QThread crashes QGIS

I'm trying to use a QThread for CSV export that can freeze my UI. Therefore I have a polyvalent Thread class below : class Thread(QThread): finished = pyqtSignal() def __init__(self, fn, *...
dmjf08's user avatar
  • 1,273
0 votes
1 answer
465 views

PyQGIS QgsMessageLog "NameError: name 'Qgis' is not defined"

I'm trying to debug a pyQGIS plugin, but can't get one of the Qthread working. I was told QgsMessageLog was the best way; QgsMessageLog.logMessage("before simplify", "plugin", ...
S.E.'s user avatar
  • 336
7 votes
2 answers
749 views

QThread - map not loading after the thread is done

I'm using QThread to run processingBar and heavy job so the user will know it's loading. Everything works fine until the job is done then the map is stuck and not reloading. It looks like I need to ...
Micha's user avatar
  • 163
4 votes
1 answer
257 views

QgsVectorLayer creation in Qthread (PyQt)

Our QGIS project is dynamically generated on startup based on user roles. There are nearly 120 QgsVectorLayers that need to be generated. If created sequentially, the login process takes up to 2 ...
TheGrudge's user avatar
  • 423
5 votes
1 answer
950 views

Implementing Tasks in a QGIS-Plugin to keep GUI responsive

I am trying to implement QgsTasks into a PlugIn to keep its GUI responsive while running. I have studied the docs at https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/tasks.html, which ...
MrXsquared's user avatar
  • 34.5k
2 votes
0 answers
369 views

Custom QGIS maptool to return current event

This is what I am trying to do. I designed an interface which can switch between selection mode and placement mode. Selection mode activates the selection tool. Placement mode is what I am ...
Ehsan Aliverdi's user avatar
11 votes
0 answers
455 views

Multithreaded DB connection for QGIS plugin [closed]

I am using QGIS 2.18.21 and PostgreSQL 9.6. on a Windows 8 machine. I am trying to do processing of a certain database task in the background, and I want the user to be able to continue to work in ...
Lennert De Feyter's user avatar