fatma.ekici
fatma.ekici

Reputation: 2827

QTableWidget column resize event

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

Answers (1)

cmannett85
cmannett85

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

Related Questions