Hi,
i am generating a grid. The grid is a qTableView item. I want when the window open the first row and column to be highlighted. I write these two lines for this purpose:
ui->tableView->selectRow(0);
ui->tableView->selectColumn(0);
but only the first column appears highlighted. As far as i understand when we do a selection it erases the previous selection. Is there a way to make it remember the selection of the row so i have the desired outcome?
Thanks!
↧