Thanks for your reply, was just typing that I had figured it out.
Added after 5 minutes:
Well...I thought I had figured it out.
My code isn't give me all the rows, it only gives me the one row.
int rows = model->rowCount();
for (int i = 0; i < rows; i++)
{
number = ui->tableView->model()->data(ui->tableView->model()->index(i,5)).toString();
number2 = ui->tableView->model()->data(ui->tableView->model()->index(i,6)).toString();
}
int rows = model->rowCount();
for (int i = 0; i < rows; i++)
{
number = ui->tableView->model()->data(ui->tableView->model()->index(i,5)).toString();
number2 = ui->tableView->model()->data(ui->tableView->model()->index(i,6)).toString();
}
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks