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?
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)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With