Join Today
+ Reply to Thread
Results 1 to 4 of 4
  1. #1

    Default question:how can i get the mouse position?

    when my app minimized on phone ,how can i get the mouse position?

    or the mouse clicked event??

    is it possible???

  2. #2

    Default

    try these:

    QMouseEvent * e



    string s;
    s.sprintf("%d/%d", e->pos().x(), e->pos().y());

  3. #3
    Join Date
    Jan 2007
    Location
    Belo Horizonte, MG, Brazil
    Posts
    375

    Default Re: question:how can i get the mouse position?

    Quote Originally Posted by SigarRon
    when my app minimized on phone ,how can i get the mouse position?

    or the mouse clicked event??

    is it possible???
    You can't. When your app is not in focus, the system doesn't send mouse events. But you can catch key events.

  4. #4

    Default

    @dedraks
    thanks....
    i can catch key events with ioctl on /dev/keypad
    but, i do not know how to control the device of touch screen..because i can not find out which it is....
    i just want to know if there is some event happend on touch screen..


 
+ Reply to Thread

Similar Threads

  1. How To: Change Position Of Universal Bar And Others
    By achyudhram in forum E6 General Chat
    Replies: 9
    Last Post: 06-26-2009, 02:38 AM
  2. control your pc with rokr as a mouse !!
    By bakaey in forum E6 General Chat
    Replies: 5
    Last Post: 02-20-2009, 10:51 AM
  3. [Game]Pole Position: Remix (cracked)
    By sagar420 in forum iGamers
    Replies: 0
    Last Post: 10-11-2008, 03:37 PM
  4. Q: How can I change Song Position In Real Player Playlist
    By rn5a in forum A1200 General Chat
    Replies: 1
    Last Post: 11-25-2007, 02:57 AM
  5. Return to the home position by default when going to a scree
    By bond00 in forum A1200 General Chat
    Replies: 1
    Last Post: 10-12-2006, 04:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1