try these:
QMouseEvent * e
string s;
s.sprintf("%d/%d", e->pos().x(), e->pos().y());
when my app minimized on phone ,how can i get the mouse position?
or the mouse clicked event??
is it possible???
try these:
QMouseEvent * e
string s;
s.sprintf("%d/%d", e->pos().x(), e->pos().y());
You can't. When your app is not in focus, the system doesn't send mouse events. But you can catch key events.Originally Posted by SigarRon
@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..