centralWidget horizontalLayout listWidget // в левой половинке layout tabWidget // в правой половинке layout tab1 textEdit1 tab2 textEdit2
setCentralWidget( ui->horizontalLayoutWidget );
centralWidget horizontalLayout listWidget // в левой половинке layout tabWidget // в правой половинке layout tab1 verticalLayout1 textEdit1 tab2 verticalLayout2 textEdit2
void EditWindow::addTextTab( QString name ){ QWidget* tab = new QWidget(); QHBoxLayout *hlayout = new QHBoxLayout( tab ); QTextEdit* tE = new QTextEdit( tab ); hlayout->addWidget( tE ); ui->tabWidget->addTab( tab, name );}
QTextEdit* tE = qobject_cast<QTextEdit*>(ui->tabWidget->currentWidget());
QTextEdit* tE = static_cast<QTextEdit*>(ui->tabWidget->currentWidget());
QTextEdit* tE = ui->tabWidget->currentWidget()->findChild<QTextEdit*>();