connect(this,&MyQHeaderView::sectionClicked,this,&MyQHeaderView::slotSectionClicked);
通過這行代碼連接信號與槽,槽函數死活不執行。
切結在構造函數里設置
setSectionsClickable(true);
就能正常觸發了
大坑啊
connect(this,&MyQHeaderView::sectionClicked,this,&MyQHeaderView::slotSectionClicked);
通過這行代碼連接信號與槽,槽函數死活不執行。
切結在構造函數里設置
setSectionsClickable(true);
就能正常觸發了
大坑啊
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。