D
D
dadasay2019-11-03 09:01:15
Python
dadasay, 2019-11-03 09:01:15

How to find out which threads are "live" (QThread, PyQT5)?

The python standard library has a threading module, and it has an enumerate() method that allows you to find out which threads are running. Is there such a method in QThread ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-11-03
@dadasay

It's better to store a collection of running threads somewhere. Or at least set the parent object when creating the QThread, then you can get the list like this:threads = someParentObject.findChildren(QThread)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question