1. If only mouseMoveEvent event can not be triggered, then it may be the lack of "this-> setMouseTracking (true); ", because of its special consumption of resources of the computer, turned off by default.
2. If other events (such as mouseReleaseEvent and mousePressEvent) does not work, then it may be because the mouse is placed on controls, for example, you modify the QtWidget mouse press events, then you press the mouse button on the top control is not triggered.
Qt can not trigger mouse events
Guess you like
Origin blog.csdn.net/qinqinxiansheng/article/details/104401560
Recommended
Ranking