5
votes

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?

1

1 Answers

10
votes

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).