python 3.7 - I try to close the thread without closing the GUI is it possible?
On 09/15/2018 01:23 AM, Albert-Jan Roskam wrote:
> > I try to close the thread without closing the GUI is it possible?
> Qthread seems to be worth investigating:
Or better yet, investigate Qt's built-in, asynchronous http request
calls. I believe the class is QNetworkRequest (and probably other
related classes). This keeps the HTTP request all within the Qt event
loop and eliminates the need for threads. Additionally it handles all
the problems that might come up, such as connection problems, http
errors, etc. It looks complicated, but it's simpler than using a thread.