Hi wysota,
I know what should do insertRow(); removeRow(); and updateRowInTable();
But i dont know how to use it.

With this code i am able to view the values of my table:
Qt Code:
  1. QString table = ui.tabelle_le->text();
  2. model->setTable(table);
  3. model->setEditStrategy(QSqlTableModel::OnManualSubmit);
  4. model->select();
  5.  
  6.  
  7. ui.tableView->setModel(model);
  8. ui.tableView->show();
To copy to clipboard, switch view to plain text mode 

And now i would like to insert a new Row or update a value or delete a Row.
And my problem is:
How to use:
bool QAbstractItemModel::insertRow ( int row, const QModelIndex & parent = QModelIndex() )
bool QAbstractItemModel::removeRow ( int row, const QModelIndex & parent = QModelIndex() )
I have not found any examples how to use it.
In the passt i use this for create a new row:
Qt Code:
  1. QSqlQuery insert("insert into.....");
  2. insert.exec()..
  3. ..
To copy to clipboard, switch view to plain text mode 

I would like to use :
Qt Code:
  1. bool QAbstractItemModel::insertRow ( int row, const QModelIndex & parent = QModelIndex() )
  2. bool QAbstractItemModel::removeRow ( int row, const QModelIndex & parent = QModelIndex() )
To copy to clipboard, switch view to plain text mode 
Can somebody show me how to use it?