CustomWidget
::CustomWidget(QWidget *parent
) :{
m_button_edit.setText(tr("Edit"));
m_button_all.setText(tr("All"));
m_button_cancel.setText(tr("Cancel"));
InitializeModels();
SetTables();
splitter->addWidget(m_table1);
layout_table2->addWidget(m_table2, 0, 0, 1, 3);
layout_table2->addWidget(&m_button_edit, 1, 0, 1, 1);
layout_table2->addWidget(&m_button_all, 1, 1, 1, 1);
layout_table2->addWidget(&m_button_cancel, 1, 2, 1, 1);
temp->setLayout(layout_table2);
splitter->addWidget(temp);
}
CustomWidget::CustomWidget(QWidget *parent) :
QWidget(parent)
{
m_button_edit.setText(tr("Edit"));
m_button_all.setText(tr("All"));
m_button_cancel.setText(tr("Cancel"));
InitializeModels();
m_table1 = new QTableView(this);
m_table2 = new QTableView(this);
SetTables();
QSplitter *splitter = new QSplitter(Qt::Vertical, this);
splitter->addWidget(m_table1);
QWidget *temp = new QWidget(this);
QGridLayout *layout_table2 = new QGridLayout(this);
layout_table2->addWidget(m_table2, 0, 0, 1, 3);
layout_table2->addWidget(&m_button_edit, 1, 0, 1, 1);
layout_table2->addWidget(&m_button_all, 1, 1, 1, 1);
layout_table2->addWidget(&m_button_cancel, 1, 2, 1, 1);
temp->setLayout(layout_table2);
splitter->addWidget(temp);
}
To copy to clipboard, switch view to plain text mode
Bookmarks