Receiving signal when pressing on QTableWidget header?
Solved
General and Desktop
-
@koahnig said in Receiving signal when pressing on QTableWidget header?:
QTableWidget
Hi
What about
http://doc.qt.io/qt-5/qheaderview.html#sectionPressed
and
QTableWidget::horizontalHeader() or QTableWidget::verticalHeader().
To hook up signal ?
Might also need void QHeaderView::setSectionsClickable(bool clickable) -
Thanks for your response.
I have to admit that I figured that part already, but it looked a bit out of style for Qt. Therefore, I was not sure, if I simply overlooked a more obvious way. Sometimes one dos not recognize the forest, because of the wood the around ;)
Finally the implementation looked less complicated than I thought initially. And it works.