Hi,
I'm trying to create an app for my Symbian phone. It should receive a list with filenames from the Server which is running on my Windows PC, and my phone should put each filename as a new Item in the QWidgetList. The problem is that when my phone receives the filenames it puts some filenames together. E.g:
First Item: Like the way.mp3
Secon Item: Pump it up.mp3blabla.mp3
Third Item: blabla.mp3

I don't know why this happens. I also read the "Fortune Client" Example, but I couldn't really understand it.

Qt Code:
  1. void Client::readFortune()
  2. {
  3. /*ui->statusLabel->setText("Connected!");
  4.   QDataStream in(tcpSocket);
  5.   in.setVersion(QDataStream::Qt_4_0);
  6.  
  7.   char buffer[200] = "";
  8.   tcpSocket->read(buffer, tcpSocket->bytesAvailable());
  9.   ui->listWidget->addItem(buffer);*/
  10.  
  11. QDataStream in(tcpSocket);
  12. in.setVersion(QDataStream::Qt_4_0);
  13. QByteArray array1 = tcpSocket->read(100);
  14. ui->listWidget->addItem(array1);
  15.  
  16. //statusLabel->setText(tr("Connected"));
  17. }
To copy to clipboard, switch view to plain text mode 

The function is already connected with "readyRead".