I'm working in a project where there is 2 threads and I'm using QThread, but when one of them is working, the other need to be refreshed. But I have already tried: qApp->processEvents()
sometimes this freeze, and sleep()
makes the program too slow...
I also tried with usleep(1), method from QThread, but the loop is too big, it goes 7600 in the while... so it take 5 or 6 seconds more, I need something more quick... Any idea?