Questions tagged [qthread]
The qthread tag has no summary.
                8 questions
            
            
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                226
            
            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):
   ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                460
            
            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, *...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                735
            
            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", ...
                
            
       
        
            
                7
            
            votes
        
        
            
                2
            
            answers
        
        
            
                832
            
            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 ...
                
            
       
        
            
                4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                338
            
            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 ...
                
            
       
        
            
                5
            
            votes
        
        
            
                1
            
            answer
        
        
            
                1k
            
            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 ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                392
            
            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 struggling ...
                
            
       
        
            
                11
            
            votes
        
        
            
                0
            
            answers
        
        
            
                471
            
            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 ...