Reputation: 2827
I want to know whether a column of a QTableWidget is being resized by mouse. How can I emit a signal whenever any of the columns is resized?
Upvotes: 5
Views: 4253
Reputation: 22346
Column resizing is performed by the horizontal QHeaderView
. Access it by calling QTableWidget::horizontalHeader() const
, and the signal you are interested in is QHeaderView::sectionResized(int logicalIndex, int oldSize, int newSize)
.
Upvotes: 12