Do you need a separate thread? Have you tried slicer.util.createProgressDialog()? You might find these examples helpful: Use progress bar from python
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Slicer crashes when using QThreadPool to start QRunnable in python module | 16 | 2827 | October 4, 2019 | |
Progressbar in 3D Slicer python script - how can I make it stay in foreground? | 2 | 501 | June 23, 2021 | |
Slicer crashing when using multiprocessing or multi threading | 2 | 468 | April 25, 2022 | |
Slicer doesn't print anything during for loops even with sys.stdout.flush() | 1 | 143 | March 15, 2024 | |
Long running process problem | 4 | 313 | October 14, 2022 |