If you don't want an X11 input event generated from a keyboard like device then you could tell X11 to ignore it from xorg.conf:
Qt Code:
Section "InputClass" Identifier "Ignore barcode reader because I am reading it directly through /dev/input/eventx" MatchProduct "Whizzo barcode reader" Option "Ignore" "yes" EndSectionTo copy to clipboard, switch view to plain text mode
Looks like you should be able to intercept raw XEvents by installing a QCoreApplication::setEventFilter() (or QAbstractEventDispatcher::setEventFilter())
Bookmarks