tableView is a QTableView.
There's a count() method, but no isSectionSelected or equivalent that I can find.
for (int i=0; i < tableView->horizontalHeader()->count(); i++)
{
if (tableView->horizontalHeader()->isSectionSelected(i))
{
// Do stuff
}
}
for (int i=0; i < tableView->horizontalHeader()->count(); i++)
{
if (tableView->horizontalHeader()->isSectionSelected(i))
{
// Do stuff
}
}
To copy to clipboard, switch view to plain text mode
Does anyone know how to query which sections are currently selected?
Bookmarks