No, you don't. A simple example, just looking at this code:
Qt Code:
if (data.contains("=yend")) { tcpSocket->close(); }To copy to clipboard, switch view to plain text mode
What if you first get "=y" and then next time readRead() is emitted, you get "end"? data.contains("=yend") is false in both cases however you have received "=yend".
Bookmarks