There is a risk of race condition when connecting the finished signal after launching the thread with setFuture(). This is documented in the Qt doc.
I agree that the risk is quite neglectible here since the thread may have some work to do and may not return instantaneously, but it's safer by calling the setFuture() after the connection.
There is a risk of race condition when connecting the
finished
signal after launching the thread withsetFuture()
. This is documented in the Qt doc.I agree that the risk is quite neglectible here since the thread may have some work to do and may not return instantaneously, but it's safer by calling the setFuture() after the connection.