Hello,

I am building a client/server application , I made a response in the server with
Qt Code:
  1. socket->write("blabla");
To copy to clipboard, switch view to plain text mode 

i used telnet as a client and actually the response recieved.

But the problem is that I want to make a notification as a QMessageBox . But nothing appears.

server:
Qt Code:
  1. void MyClient::TaskResult(int number)
  2. {
  3. QByteArray Buffer;
  4. Buffer.append("Task Result = ");
  5. Buffer.append(QString::number(number));
  6.  
  7. socket->write(Buffer);
  8. QMessageBox::information(this, "Bytes written", "Bytes written successfully to the client");
  9. }
To copy to clipboard, switch view to plain text mode 

the
Qt Code:
  1. socket->write(buffer);
To copy to clipboard, switch view to plain text mode 
works, but the messagebox does not work.

Can you tell me the reason why ?

NOTE: i'm not aiming to use the messagebox in the real project, but i made this to debug and make sure about the steps done.
There's another issue which will BE ACTUALLY used in the project, its changing some labels/widgets in the MainWindow from another class at incoming connection.
But thats not my question now.

Thanks,
Vladimir.