Qt Code:
void myClient::readyRead() { //qDebug() << socket->readAll(); if(!sentFile.exists()) { while(socket->waitForReadyRead()) { qDebug()<< "read: " << block.size(); sentFile.write(block); block.clear(); } socket->close(); sentFile.close(); } }To copy to clipboard, switch view to plain text mode
i guess the while loop is blocking my GUI
how can l make this code non-Blocking
Thanks and best regards.
Bookmarks