Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多年前,一位用户在 Qt 中心论坛上提出了这个问题,但没有得到回答。它仍然是相关的,特别是与 QWheelEvent. 根据我的经验,事件处理程序QWheelEvent必须是accept()ed 或ignore()d,但是鼠标事件可以返回true并且它算作accept()? QEvent::event()关于返回值,你学到了什么?显然,退货true并不总是算作,accept()而且文档充其量也是模糊的。
QWheelEvent
accept()
ignore()
true
QEvent::event()