PDA

View Full Version : No isSectionSelected on QHeaderView?



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?

SudaNix
20th September 2009, 06:01
connect with this signal:


QHeaderView::sectionClicked ( int logicalIndex );