#include "chatwindow.h" #include "ui_chatwindow.h" using namespace std; ChatWindow::ChatWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::ChatWindow) { ui->setupUi(this); QList sizes; sizes.push_front(ui->chatText->height()); sizes.push_front(100); ui->splitter->setSizes(sizes); } ChatWindow::~ChatWindow() { delete ui; }