01-23-04 10:33 PM
Follow-up:
I am actually using Qt/embedded, so I am able to use
QWSServer::sendMouseEvent(qpoint, buttonstate)...
I trap the MouseMove events in an eventFilter and (as needed) do a
sendMouseEvent of my own.
This makes the mouse cursor *look* ok on the screen (e.g. it moves where I
want) but the "real" position seems to be remembered by something deeper.
I haven't tried it on the target system so I have hope it will work [and
that the position is confused in my emulation by the underlying X11 system].
I think I am getting close.
Thanks for the replies.
"J. Patrick Brandt" <spambait@null.com> wrote in message
news:939Gb.55987$pY.34251@fed1read04...quote:
> Does anyone even know if it is possible programmatically to reposition the
> mouse cursor [using Qt under Linux]?
>
> Any hints appreciated. I am trying to "trap" the mouse cursor to the
visiblequote:
> area of a framebuffer (e.g. TV out - the visible part of the screen is
lessquote:
> than the full x-y resolution, depending on the monitor...)
>
> I can catch mouseMoveEvents and send my own (which I receive) but the
cursorquote:
> doesn't move, so all I am doing is sending "extra" events, not affecting
thequote:
> mouse.
>
> What I would like to do is something like "if x<100 then move mouse to
> (100,y)", etc.
>
> Sorry - I can't seem to find a "Qt" related group.
> Thanks!
>
>
[ Post a follow-up to this message ]
|