I have a QTableWidget with 9000 data. I can search data from a table, for example, if I search for "10", whole data starting with "10" will be displayed. Now I need to select the first line, as it shows the exact search result.
I use:
ui->tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows);
to highlight the selected line.
How can I highlight the first row of a table?
Shyam source share