void
MainWindow::on_pushButton_clicked()
{
if
(!ui->tableView->verticalHeader()->count())
{
ui->lineEdit->setText(
"empty tableview"
);
QStandardItemModel *model =
new
QStandardItemModel( 2,3,
this
);
model->setHorizontalHeaderItem(0,
new
QStandardItem(QString(
"Column0 Hearder"
)));
model->setHorizontalHeaderItem(1,
new
QStandardItem(QString(
"Column1 Hearder"
)));
model->setHorizontalHeaderItem(2,
n