Hi.

I have some tables QTableView, I shown in this QTableView a table from my database. I do not generally been the case with the larger problems. And I did this:

Qt Code:
  1. QSqlTableModel *model = new QSqlTableModel(ui->table,db);
  2.  
  3. // Wybór tablicy danych
  4. model->setTable("testowa");
  5. model->select();
  6.  
  7. ui->table->setModel(model);
To copy to clipboard, switch view to plain text mode 

I would to be able to get the contents (value) of a cell.

I hope that I wrote well ( in English )