![Qt update gui from different thread](https://kumkoniak.com/22.jpg)
the heavy calculation code works well the only problem is the qgis and GUI are not responding while the code is being executed.
#Qt update gui from different thread update#
I tried using threads but my knowledge isn't enough and QGIS Crashes when I am trying to update the logger and progress bar from the second Thread. chapter we'll look at the options available to you from within Qt to move work onto separate threads and processes. I have already tried QgsTask, but it doesn't work form me as in cookbook clearly mentions "must NEVER use any QgsVectorLayer, QgsProject or perform any GUI based operations" How can I keep GUI(progress bar and the logger) alive while I do the heavy calculation? Although, this method works but I noticed my GUI sometimes gets choppy, like: laggy when i move QSplitter or responsiveness of QPushButtons etc. #in Here I modify all layers, all geomerty and for each action I update progress bar and logger But i would like to know, is emitting signals in a loop to update GUI a good idea I feel emitting signals from another thread also keeps the GUI thread busy in updating the UI forever. # there is a log textbox and with some logic this will write the logs Robo 3T (formerly Robomongo) is the free, lightweight, open-source MongoDB GUI with an embedded mongo shell, real auto-completion, and support for MongoDB. #this will be called when every user clicks the Run button To make it easyi just put the concept I use in my program class maindlg:
![qt update gui from different thread qt update gui from different thread](https://www.advsofteng.com/tutorials/interactive_surface_chart/interactive_surface_chart_s.png)
The actions normally take 45minutes to 1hr Then the script will use those proxies randomly to parse the title of different coffe shops from a A simple example to send emails. When the user clicks the Run button the GUI/QGIS will become "No responding"
![qt update gui from different thread qt update gui from different thread](https://vsmn20.readthedocs.io/sv/latest/images/qt_designer1.png)
#Qt update gui from different thread how to#
Everything works great, but I just cant figure out how to update the GUI from the separate thread. I have a GUI designed with PyQt, this GUI has a progress bar and a logger. Qt Programming Update GUI from another thread.
![Qt update gui from different thread](https://kumkoniak.com/22.jpg)