Hi,
I have a mysql table "person" with the columns id and name.
I have this code :
QSqlTableModel *model = new QSqlTableModel;
model->setTable("person");
model->setEditStrategy(QSqlTableModel::OnRowChange);
model->select();
PersonTableView->setModel(model);
When I select a row of "PersonTableView", I want to access the data of each column. For example, I want to receive the id=1, and name="schmit".
Can you give me the code for accessing the data from the "PersonTableView", and not from the model.
I have already read the documentation, but I need the example code.
Regards.
Bookmarks