I have program to write and read data over QTcpSocket ,when read data I want to appended my socket answer to QTextEdit,I send Multi different Packet,if I send one package each time write data , read data and printout data is true but when appended data to QtextEdit first appended last read data(from Previous package) then if send next package again appended new read data ,how can I fix this??
I use
Qt Code:
  1. ui->textEdit->textCursor().insertText(pwr);
  2. ui->textEdit->textCursor().clearSelection();
  3. ui->textEdit->textCursor().deletePreviousChar();
To copy to clipboard, switch view to plain text mode 
also,but still first show last appended