You need
Qt Code:
  1. ui->tableView->show();
To copy to clipboard, switch view to plain text mode 
at the end of the MainWindow constructor to actually see the tableview.