No, you are passing html string to QTextEdit and result of that method (which is "void" - what you can read in documentation) you are passing to socket. So you are passing void - which is exactly nothing - to the socket. So you are writing nothing. And it is only simple C++ knowledge needed to discover that :P
change it into those lines:
Qt Code:
chat->setHtml(html); socket->write(html);To copy to clipboard, switch view to plain text mode
Bookmarks