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 | 2841 | October 4, 2019 | |
Progressbar in 3D Slicer python script - how can I make it stay in foreground? | 2 | 506 | June 23, 2021 | |
Slicer crashing when using multiprocessing or multi threading | 2 | 476 | April 25, 2022 | |
Slicer doesn't print anything during for loops even with sys.stdout.flush() | 1 | 150 | March 15, 2024 | |
Long running process problem | 4 | 316 | October 14, 2022 |