5

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?

Daniel Hedberg
  • 5,677
  • 4
  • 36
  • 61
fatma.ekici
  • 2,787
  • 4
  • 28
  • 30

1 Answers1

12

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

cmannett85
  • 21,725
  • 8
  • 76
  • 119