How to show the QTableWidget row selected
-
Hi All
I am populating the QTableWidget by reading data from the file.
Here i want to show 1st row of the table as selected[here selected means displaying the row as blue] when i read & populate data in table.
How to do this? -
I haven't tested, but you can probably get away with:
@
QTableWidget *tw...;tw->setCurrentCell(0,0);
@ -
QTableView::selectRow() would be a place to start...
-
Hm, forgot to look through the base class docs again.