#include "chatwidget.h" ChatWidget::ChatWidget(QWidget *parent) : QTextEdit(parent) { } void ChatWidget::printServerMsg(QString &str) { this->append("
" + str + "
"); } void ChatWidget::printMsg(QString &str) { this->append(str); } void ChatWidget::printStatusMsg(QString &str) { this->append("" + str + "
"); }