Getting QWidget's Windows messages without subclassing it and reimplementing QWidget::winEvent

StackOverflow https://stackoverflow.com/questions/16499233

문제

Is it possible to intercept QWidget's Win messages without reimplementing QWidget::winEvent? Is there something like installEventFilter but for Windows native messages?

도움이 되었습니까?

해결책

You can install a native message event filter function at the application level with QAbstractEventDispatcher::instance()->setEventFilter() (see the documentation).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top