Display a QDialog when a QThread start

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Display a QDialog when a QThread start


I use PyQt5 and I'm trying to display a loading window when a QThread is
running. You can find a part of my actual code in attachment.

Each time, the Qdialog is displayed once the QThread is finished, but if I put
the line 11 before all the signals connections, it works (sometimes I have an
output : "QThread::wait: Thread tried to wait on itself", I don't know why).
However it is not a good way to do it.

Here is what I have on my screen : https://gifyu.com/images/
vokoscreen-2017-09-13_09-34-55.gif (don't take care about the numbers in

Thanks you in advance.

PyQt mailing list    [hidden email]

script.py (1K) Download Attachment