Hello,
I am building a client/server application , I made a response in the server with
socket->write("blabla");
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:
void MyClient::TaskResult(int number)
{
Buffer.append("Task Result = ");
Buffer.
append(QString::number(number
));
socket->write(Buffer);
QMessageBox::information(this,
"Bytes written",
"Bytes written successfully to the client");
}
void MyClient::TaskResult(int number)
{
QByteArray Buffer;
Buffer.append("Task Result = ");
Buffer.append(QString::number(number));
socket->write(Buffer);
QMessageBox::information(this, "Bytes written", "Bytes written successfully to the client");
}
To copy to clipboard, switch view to plain text mode
the
socket->write(buffer);
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.
Bookmarks