Results 1 to 2 of 2

Thread: WM_INPUT not being filtered by winEventFilter()

  1. #1
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default WM_INPUT not being filtered by winEventFilter()

    So, using winEventFilter() I get lots of messages from Windows, but none are WM_INPUT.
    Is there something I am missing? Or does QApplication not support raw input?

    EDIT:
    Apparently I have to use QAbstractEventDispatcher().
    I tried doing this:
    Qt Code:
    1. QAbstractEventDispatcher::instance()->setEventFilter(eventFiltering);
    2. bool QApp::eventFiltering(void *msg)
    3. {
    4. qDebug() << msg;
    5. return false;
    6. }
    To copy to clipboard, switch view to plain text mode 
    But I get this message:
    Qt Code:
    1. no matching function for call to 'QAbstractEventDispatcher::setEventFilter(<unresolved overloaded function type>)'
    2. note: candidates are: bool (* QAbstractEventDispatcher::setEventFilter(bool (*)(void*)))(void*)
    To copy to clipboard, switch view to plain text mode 

    Update:
    So going here I was able to make the above work.
    But I still do not get a WM_INPUT message.
    Last edited by been_1990; 10th October 2010 at 20:11. Reason: updated contents

  2. #2
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: WM_INPUT not being filtered by winEventFilter()

    Anyone knows why qwidget does not receive raw input message?

Similar Threads

  1. Replies: 1
    Last Post: 18th March 2010, 08:42
  2. Replies: 4
    Last Post: 20th September 2007, 13:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.