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 | 2854 | October 4, 2019 | |
Progressbar in 3D Slicer python script - how can I make it stay in foreground? | 2 | 515 | June 23, 2021 | |
Slicer crashing when using multiprocessing or multi threading | 2 | 481 | April 25, 2022 | |
Slicer doesn't print anything during for loops even with sys.stdout.flush() | 1 | 152 | March 15, 2024 | |
How to use signals and slots in Slicer 3d? | 5 | 1511 | October 18, 2020 |