I want to retrieve the content of a specific column from a qTableView which contains 2 columns; the problem is that i can't find a way to access it; i also tried to writing the following code(inspired by another question) but it doesn't solve the problem:
for(int i = 0; i < ui->table->model->rowCount(); i++) {
QAbstractItemModel index = ui->table->model()->data(ui->table->model()->index(0,i));
qDebug() << index;
}
What i'm doing wrong?