Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 432
fatma.ekici Avatar asked Feb 01 '13 14:02

fatma.ekici


1 Answers

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

like image 150
cmannett85 Avatar answered Oct 31 '22 11:10

cmannett85