Qt World Summit: Register Today!

QApplication winEventFilter for QT5

  • Hello

    I'm using QT 4.8 for 2 years and i need to install new version of QT 5.x but i realize a feature is not supported since QT 5.0.

    In fact, i need to catch some Windows messages and i have used the method "winEventFilter" which is no longer supported.

    The documentation requests to use installNativeEventFilter instead of winEvenFilter but it's not possible to get the Windows messages and the associate parameter (msg , lparam, wparam).

    Do you have an idea what can i do to get this information ?

  • See QAbstractNativeEventFilter::nativeEventFilter
    You receive the MSG struct (which has lParam, wParam) in (void *) message parameter...

Log in to reply