[Qt-interest] QMainWindow: Prevent mouse from leaving.
R. Reucher
rene.reucher at batcom-it.net
Tue Oct 27 16:48:39 CET 2009
On Tue, 27 Oct 2009 16:44:42 +0100, Martin Guillon wrote:
> I already tried the mouseMoveEvent trick with mousetracking. In it i set
> the position of the mouse to the middle of my window. My problem is that
> when the mouse move too fast, the mouse is out of the window before you
> can receive the mousemoveevent. And so the application will lose the
> focus. I just retried the grabmouse trick on my mainwindow and it
> doesn’t work. iF I move fast the mouse gets out and the application
> loses the focus. It comes back as soon as the pointer get back over the
> window.
Did you try that together with mouse-grabbing? I have no idea if it would
change anything, though...
> Any other idea ? :P
Not really... sorry.
Regards, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
Your fault: core dumped
More information about the Qt-interest-old
mailing list