QHeaderView的點選和雙擊事件

weixin_33858249發表於2015-07-22

QTablewidget的horizontalHeader() 和 verticalHeader() 得到的表頭:QHeaderView

點選事件的觸發函式:

而不是:

 

隱藏和顯示特定的列,根據列的邏輯索引號。

void QHeaderView::hideSection(int logicalIndex)

Hides the section specified by logicalIndex.

See also showSection(), isSectionHidden(), hiddenSectionCount(), and setSectionHidden().

相關文章