点击Qtableview表头,触发事件
connect(horizontalHeader(), SIGNAL(sectionClicked(int)), this, SLOT(onHeaderClicked(int)));
refer to http://developer.qt.nokia.com/faq/answer/how_can_i_sort_the_items_in_a_qtablewidget_on_multiple_columns
https://bbs.csdn.net/topics/360139821
posted on 2019-02-28 18:21 liujx2019 阅读(2414) 评论(0) 编辑 收藏 举报