Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top