Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QApplication winEventFilter for QT5

QApplication winEventFilter for QT5

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 4.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iesrbt
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rivierakid
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved