rakkar
20th September 2009, 02:54
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
}
}
Does anyone know how to query which sections are currently selected?
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
}
}
Does anyone know how to query which sections are currently selected?