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. Event filter mechanism on Windows 64bit
Forum Updated to NodeBB v4.3 + New Features

Event filter mechanism on Windows 64bit

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 805 Views 1 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.
  • V Offline
    V Offline
    vtechdb
    wrote on last edited by
    #1

    In Qt 4.8.4 the QCoreApplication class has a global event filter mechanism: setEventFilter or for the windows version: winEventFilter. On Windows this is called directly from QtWndProc (this is the registered windows message handler callback function of Qt 4.8.4). The result of filterEvent is used as the return value of this function.

    The problem is that the type of the result is long while on win64 the result of a windows message handling is 64bit. So during the filter mechanism it will be cut.

    Currently it is not problem as all of the result I saw used only 32bit, but I couldn't see any hint on win sdk help that declares in the future the top 32bit will not be used. So it can be a problem later.

    In Qt 5.3.1 function nativeEventFilter of class QAbstractNativeEventFilter gives the result in type long. It seems the problem also occurs.

    Is it a known problem? Will it be solved? Or am I miss something?

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Something is not quite clear, are you hitting any problem currently ? Or is it just a theoretical question ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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