connect(this,&MyQHeaderView::sectionClicked,this,&MyQHeaderView::slotSectionClicked);

通过这行代码连接信号与槽,槽函数死活不执行。

切结在构造函数里设置

setSectionsClickable(true);

就能正常触发了

大坑啊

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-11-13
  • 2021-04-08
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案