Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 QTableWidget 的列是否正在被鼠标调整大小。每当调整任何列的大小时,如何发出信号?
列调整大小由水平执行QHeaderView。通过调用访问它QTableWidget::horizontalHeader() const,您感兴趣的信号是QHeaderView::sectionResized(int logicalIndex, int oldSize, int newSize)。
QHeaderView
QTableWidget::horizontalHeader() const
QHeaderView::sectionResized(int logicalIndex, int oldSize, int newSize)