bigkoma
3rd February 2009, 19:03
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:
QSqlTableModel *model = new QSqlTableModel(ui->table,db);
// Wybór tablicy danych
model->setTable("testowa");
model->select();
ui->table->setModel(model);
I would to be able to get the contents (value) of a cell.
I hope that I wrote well :) ( in English ) :)
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:
QSqlTableModel *model = new QSqlTableModel(ui->table,db);
// Wybór tablicy danych
model->setTable("testowa");
model->select();
ui->table->setModel(model);
I would to be able to get the contents (value) of a cell.
I hope that I wrote well :) ( in English ) :)