C++ (Qt)void serverForm::slot_addTab(){ QWidget *w = new QWidget (this); ui->tabWidget->addTab(w,"newTab"); }
C++ (Qt)class miniTab : public QWidget{ private: QTextEdit *_textEdit; public: miniTab(); QTextEdit *textEdit() { return _textEdit; }}; miniTab::miniTab(){ _textEdit = new QTextEdit(this); QHBoxLayout *layout = new QHBoxLayout(this); layout->addWidget(_textEdit);}