connect(this,&MyQHeaderView::sectionClicked,this,&MyQHeaderView::slotSectionClicked);
通过这行代码连接信号与槽,槽函数死活不执行。
切结在构造函数里设置
setSectionsClickable(true);
就能正常触发了
大坑啊