I have a problem, I have a window but I would like to be a new tab.
Dialog *dialog = new Dialog( param );
Dialog *dialog = new Dialog( param );
To copy to clipboard, switch view to plain text mode
Dialog
::Dialog( const QString
& param,
QWidget* parent
) , Ui::Dialog()
{
setupUi( this );
// Set up the label
...... etc
layout->addWidget( ... etc );
TabWidget->setLayout( layout );
tabWidget->addTab( TabWidget, "new tab" );
}
Dialog::Dialog( const QString& param, QWidget* parent )
: QWidget( parent )
, Ui::Dialog()
{
setupUi( this );
// Set up the label
QVBoxLayout
QWidget
QLabel
...... etc
QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel );
layout->addWidget( ... etc );
TabWidget->setLayout( layout );
tabWidget->addTab( TabWidget, "new tab" );
}
To copy to clipboard, switch view to plain text mode
Bookmarks