I have a class derived from TcpSocket. From a method in this class I want to assign some text to a QTextBrowser. What's the best way to do that?

Also is this okay? To get access to those generated objects from my class that derives from QMainWindow I am inheriting Ui::GeneratedClass.

Qt Code:
  1. class MChat : public QMainWindow, private Ui::MChat {
To copy to clipboard, switch view to plain text mode 

With this I can get access to QTextBrowser::append()

but this:

Qt Code:
  1. class MSocket : public QTcpSocket, private Ui::MChat
To copy to clipboard, switch view to plain text mode 

Will not.