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:
bool QApp::eventFiltering(void *msg)
{
qDebug() << msg;
return false;
}
QAbstractEventDispatcher::instance()->setEventFilter(eventFiltering);
bool QApp::eventFiltering(void *msg)
{
qDebug() << msg;
return false;
}
To copy to clipboard, switch view to plain text mode
But I get this message:
no matching function for call to 'QAbstractEventDispatcher::setEventFilter(<unresolved overloaded function type>)'
no matching function for call to 'QAbstractEventDispatcher::setEventFilter(<unresolved overloaded function type>)'
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.
Bookmarks