Results 1 to 3 of 3

Thread: can't move cursor

  1. #1
    Join Date
    Mar 2009
    Posts
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question can't move cursor

    hello guys, I transplants a QT4 program to the board, and insert the usb-mouse, and insmod the mouse driver, the output of cat /proc/bus/usb/devices is following:

    Qt Code:
    1. T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 9 Spd=1.5 MxCh= 0
    2. D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
    3. P: Vendor=15ca ProdID=00c3 Rev= 5.12
    4. S: Product=USB Optical Mouse
    5. C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
    6. I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
    7. E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms
    To copy to clipboard, switch view to plain text mode 

    but there is only event0 under /dev/input, and I set export QWS_MOUSE_PROTO="USB:/dev/input/event0", the mouse also doesn't work.

    anyone can help me to solve the problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: can't move cursor

    Do you get input events on that file descriptor when you move your mouse?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Posts
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: can't move cursor

    Quote Originally Posted by wysota View Post
    Do you get input events on that file descriptor when you move your mouse?
    Sorry, I don't understand your meaning, what file descriptor do you mean? Is it event0? and how do I get it?

Similar Threads

  1. Change cursor & status during Drag & Drop
    By ronlongo in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2008, 17:56
  2. QListView: How to move the cursor to a specific row
    By muellerp in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2008, 08:29
  3. Trouble with cursor and selecting text in QTextEdit
    By R_Torsten in forum Qt Programming
    Replies: 3
    Last Post: 7th June 2008, 20:17
  4. Move and resize with layout
    By waediowa in forum Qt Programming
    Replies: 0
    Last Post: 14th May 2008, 09:16
  5. how to move cursor to specific line in Text
    By showhand in forum Qt Programming
    Replies: 1
    Last Post: 24th August 2006, 10:55

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.