Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

select row and column from a table at the same time [SOLVED]

$
0
0
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!

Viewing all articles
Browse latest Browse all 18427

Trending Articles