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.
-
-
This post is deleted!
-
tableView->horizontalHeader()->setSectionsClickable(true); connect(tableView->horizontalHeader(),&QHeaderView::sectionClicked, [](int logicalIndex) { qDebug()<<"column"<<logicalIndex<<"clicked"; });