Unsolved how to make table header clickable in qt creator
-
Hi all, I'm struggling with how to make table header clickable. I'm using tableview. Plz let me know how to make it clickable.
-
-
thanks @mpergand , example plz
-
tableView->horizontalHeader()->setSectionsClickable(true); connect(tableView->horizontalHeader(),&QHeaderView::sectionClicked, [](int logicalIndex) { qDebug()<<"column"<<logicalIndex<<"clicked"; });
-
This post is deleted! -
Thanks for your help @mpergand , it's working!! :)