Results 1 to 2 of 2

Thread: Mouse on QT Embedded 4.5.1

  1. #1
    Join Date
    May 2009
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Question Mouse on QT Embedded 4.5.1

    Hi all,
    I can't get the mouse working on my board and I ran out of ideas.
    I configured qt with
    Qt Code:
    1. -qt-mouse-pc -qt-mouse-bus -qt-mouse-linuxtp -qt-mouse-yopy -qt-mouse-vr41xx -qt-mouse-qvfb
    To copy to clipboard, switch view to plain text mode 
    Cross-compiled it for ARM, trying to run mainwindow demo on the board (omap3evm)
    Qt Code:
    1. mainwindow -qws
    To copy to clipboard, switch view to plain text mode 
    The program starts, I see the cursor, but mouse is not working.
    I have USB Intellimouse. It does get recognized and becomes
    Qt Code:
    1. /dev/input/event2
    To copy to clipboard, switch view to plain text mode 
    when I cat the device onto stdout, I see output when I move the mouse. So the mouse does work.
    I tried setting QWS_MOUSE_PROTO to different settings, including
    Qt Code:
    1. export QWS_MOUSE_PROTO 'Intellimouse:/dev/input/event2'
    To copy to clipboard, switch view to plain text mode 
    but no result.
    Tried running the demo with strace, the here's the output:
    Qt Code:
    1. open("/dev/input/event2", O_RDWR|O_NONBLOCK) = 10
    2. ioctl(10, TCFLSH, 0x2) = -1 EINVAL (Invalid argument)
    3. write(10, "\363\310\363d\363P"..., 6) = 16
    4. read(10, 0xbecd1528, 8) = -1 EINVAL (Invalid argument)
    5. close(10)
    To copy to clipboard, switch view to plain text mode 
    Could someone enlighten me, why the mouse is not seen by a QT app?
    Thanks!

  2. #2
    Join Date
    May 2009
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Mouse on QT Embedded 4.5.1

    Solved...
    Just in case someone else has same problem. The kernel has to be compiled with INPUT_MOUSEDEV and/or INPUT_MOUSE set, not just INPUT_EVDEV.

Similar Threads

  1. Changing mouse grabbing behavior?
    By FlyingSaucrDude in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2008, 01:04
  2. QT embedded and HID mouse, can i?
    By webquinty in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 5th September 2008, 15:37
  3. mouse moving don't produce mouse events
    By coralbird in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2006, 06:13
  4. Replies: 2
    Last Post: 24th July 2006, 18:36
  5. QStackerWidget and mouse events
    By high_flyer in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2006, 19:25

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
  •  
Qt is a trademark of The Qt Company.