You don't create table views with the designer.
Do it like this:

Qt Code:
  1. model = new QSqlTableModel(this, <QSqlDatabase>);
  2. view = new QTableView();
  3. view->setModel(model);
  4. model->setTable(<table name>);
  5. header = new QHeaderView(Qt::Horizontal, this);
To copy to clipboard, switch view to plain text mode 

Don't forget the declarations for the model, view and header in the .h file.

Set your header column names with model->setHeaderData(<col>, Qt::Horizontal, "col name");
You can edit the data by clicking in the table cells.
Check out the doc here: http://doc.trolltech.com/4.5/model-v...ogramming.html