Hi!

AT the moment i'm trying to develop a server with Qt and a client in java. But thing don't work as i like. I'm even having troubles receiving a string with my Qt server.
Here is a little bit of code:

The important part of my java client:
Qt Code:
  1. public boolean sendString(){
  2.  
  3. try{
  4. final PrintWriter pw = new PrintWriter(mSocket.getOutputStream(), true);
  5. pw.println("Test String");
  6. return true;
  7. } catch(Exception e){
  8. // to be coded
  9. return false;
  10. }
  11. }
To copy to clipboard, switch view to plain text mode 

and here my qt part:
Qt Code:
  1. [...]
  2. QTcpSocket clientConnection = tcpServer->nextPendingConnection();
  3. connect(clientConnection, SIGNAL(readyRead()), this, SLOT(readClient()));
  4. [...]
  5.  
  6. void Server::readClient(void)
  7. {
  8. ui.clientLabel->setText(tr("entered readClient"));
  9. }
To copy to clipboard, switch view to plain text mode 

Now, my problem is, that readClient() isn't even called. So I think the SIGNAL(readyRead()) is never executed.
I suspect that I can't send a String like this. But what do I do wrong?

Thanks,
Bernie