I changed the destructor code of RTLSClient to
RTLSClient::~RTLSClient()
{
workerThread.terminate();
if(!workerThread.wait(3000)) //Wait until it actually has terminated (max. 3 sec)
{
workerThread.terminate(); //Thread didn't exit in time, probably deadlocked, terminate it!
workerThread.wait(); //We have to wait again here!
}
}
now app not showing ..QThread: Destroyed while thread is still running but it not responding when opening