I
I
ILIIA22892020-11-15 16:12:43
PyQt
ILIIA2289, 2020-11-15 16:12:43

How to use extra threads in pyqt5?

I have a method - def send_message(), it needs to be called in a separate thread, because it sends a message and if it is not called in a separate thread, the interface will hang.
How can I do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bbkmzzzz, 2020-11-15
@bbkmzzzz

QThread , but it seems to me that it would be better to have QThreadPool in conjunction with QRunnable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question