Do you need a separate thread? Have you tried slicer.util.createProgressDialog()? You might find these examples helpful: Use progress bar from python
mikebind
(Mike Bindschadler)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Slicer crashes when using QThreadPool to start QRunnable in python module | 16 | 3054 | October 4, 2019 | |
| Multithreading in extension | 8 | 2448 | May 30, 2019 | |
| Slicer doesn't print anything during for loops even with sys.stdout.flush() | 1 | 180 | March 15, 2024 | |
| Using Python multithreading in 3D Slicer | 11 | 988 | July 15, 2024 | |
| Slicer with custom Python threading crashing unpredictably | 6 | 168 | June 18, 2025 |