I configure the mouse like this:
export QWS_MOUSE_PROTO="LinuxInput:/dev/input/event1"

when I move the usb mouse, the mouse work fine.
when I scroll the mouse wheel in Qt/E application,I got the message:
"unknown mouse event type=2, code=8, value=1"

I look at the Qt source (version 4.7.3) code:
qt-everywhere-opensource-src-4.7.3\src\gui\embedded\qmouselinuxinput_qws.cpp
Qt Code:
  1. for (int i = 0; i < n; ++i) {
  2. struct ::input_event *data = &buffer;
  3.  
  4.  
  5. bool unknown = false;
  6. if (data->type == EV_ABS) {
  7. if (data->code == ABS_X) {
  8. m_x = data->value;
  9. } else if (data->code == ABS_Y) {
  10. m_y = data->value;
  11. } else {
  12. unknown = true;
  13. }
  14. } else if (data->type == EV_REL) {
  15. if (data->code == REL_X) {
  16. m_x += data->value;
  17. } else if (data->code == REL_Y) {
  18. m_y += data->value;
  19. } else {
  20. unknown = true;
  21. }
  22. } else if (data->type == EV_KEY && data->code == BTN_TOUCH) {
  23. m_buttons = data->value ? Qt::LeftButton : 0;
  24. } else if (data->type == EV_KEY) {
  25. int button = 0;
  26. switch (data->code) {
  27. case BTN_LEFT: button = Qt::LeftButton; break;
  28. case BTN_MIDDLE: button = Qt::MidButton; break;
  29. case BTN_RIGHT: button = Qt::RightButton; break;
  30. }
  31. if (data->value)
  32. m_buttons |= button;
  33. else
  34. m_buttons &= ~button;
  35. } else if (data->type == EV_SYN && data->code == SYN_REPORT) {
  36. QPoint pos(m_x, m_y);
  37. pos = m_handler->transform(pos);
  38. m_handler->limitToScreen(pos);
  39. m_handler->mouseChanged(pos, m_buttons);
  40. } else if (data->type == EV_MSC && data->code == MSC_SCAN) {
  41. // kernel encountered an unmapped key - just ignore it
  42. continue;
  43. } else {
  44. unknown = true;
  45. }
  46. if (unknown) {
  47. qWarning("unknown mouse event type=%x, code=%x, value=%x", data->type, data->code, data->value);
  48. }
  49. }
To copy to clipboard, switch view to plain text mode 

In the code , It seems that the Qt/E did not support the mouse wheel (when use linux input driver).

I want to know does the Qt/E support the mouse wheel (when use linux input driver) ?
or something wrong with my Qt configure ?