QHeaderView的点击和双击事件

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

点击事件的触发函数:

而不是:

 

隐藏和显示特定的列,根据列的逻辑索引号。

void QHeaderView::hideSection(int logicalIndex)

Hides the section specified by logicalIndex.

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

posted @ 2015-07-22 13:51  宁静的天空  阅读(1103)  评论(0)    收藏  举报