ChrisW6
Sorry for not posting a code before, it was a little bit complex. Anyway, your answer helped me. Here is something like the code i have now:
Qt Code:
clientConnectionSocket->waitForReadyRead(); clientConnectionSocket->write("some data"); QTest::qWait(1000);To copy to clipboard, switch view to plain text mode
I added qWait to manually start event loop. Is it a bad solution?
Bookmarks