You don't create table views with the designer.
Do it like this:
Qt Code:
view->setModel(model); model->setTable(<table name>);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
Bookmarks