I have never tried this before, so in a new form I put into the constructor:
Qt Code:
  1. model = new QStandardItemModel(this);
  2. ui->tvSpots->setModel(model); // QTableView
  3. header = new QHeaderView(Qt::Horizontal, this);
  4. ui->tvSpots->setHorizontalHeader(header);
  5. model->setHeaderData(0, Qt::Horizontal, "Click Connect to start");
  6. ui->tvSpots->show();
To copy to clipboard, switch view to plain text mode 
The table view shows up, but not the header.
Any ideas?