Unable to start QThread in Qt 5.4 beta
-
I recently installed Qt 5.4 beta. I am facing an issue with QThread. QThread::start() function never returns. It just hangs there. For example in the below code snippet:
void EmulatorTest::threadTest(){
QThread thread;
qDebug() << "starting thread";
thread.start();
qDebug() << "thread started";
}
The debug statement "thread started" never gets printed and my application hangs. Please let me know if anyone is facing this issue. -
You use emulator or real devices to test your code?
-
I suggest you try Qt 5.4 RC once it is available.