qt如何向子窗口发送send/post自定义事件
最近需要更改一个GUI,原eventfilter安装在mainwindow中ui->boardView 下监听左右键,但是我需要将监听的事件替换为自定义事件 (当某个变量超过阈值)。但是在main.cpp中我需要手动send事件,但是只能send给mainwindow w, 而不能到ui->boardView,事件监测器也无法监听事件。相关代码可见于https://stackoverflow.com/questions/60424216/how-to-use-eventfilter-under-child-widget-to-catch-self-define-event 或知乎https://www.zhihu.com/question/375221137