#ifndef CHATWIDGET_H #define CHATWIDGET_H #include class ChatWidget : public QTextEdit { Q_OBJECT public: explicit ChatWidget(QWidget *parent = 0); void printServerMsg(QString &str); void printMsg(QString& str); void printStatusMsg(QString& str); signals: public slots: }; #endif // CHATWIDGET_H