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 | 2912 | October 4, 2019 | |
Multithreading in extension | 8 | 2333 | May 30, 2019 | |
Slicer doesn't print anything during for loops even with sys.stdout.flush() | 1 | 158 | March 15, 2024 | |
Using Python multithreading in 3D Slicer | 11 | 820 | July 15, 2024 | |
Slicer with custom Python threading crashing unpredictably | 6 | 66 | June 18, 2025 |