[Qt-interest] Grabbing the mouse
phil prentice
philp.cheer at talktalk.net
Wed May 18 09:19:53 CEST 2011
Thanks Tony
I will try what you suggested.
Thanks for your interest and help.
Phil
On Tuesday 17 May 2011 09:38, Tony Rietwyk wrote:
> Hi Phil,
>
> GrabMouse should work as you expect - the menus rely on it to cancel the
> dropdown if you click anywhere outside the menu - whether in the same
> application's windows or not.
>
> I wonder if MDI is affecting the mouse handling? Try your example with
> just the graphics scene and view - that is cut out the main window and mdi.
>
> Also, I think there are limits on the maximum size of pixel coordinates
> (8,000?), so you probably should scale your view by 0.001.
>
> Hope that helps,
>
> Tony.
>
> > -----Original Message-----
> > Sent: Tuesday, 17 May 2011 18:38 PM
> >
> > Thanks again Brad and MihaiNaydenov for your responses. The
> > reason I'm trying
> > to do it this way is because I saw an example in the "Ivor
> > Hortons Beginning
> > Visual C++ 2008" book that does precisely what I'm trying to
> > achieve and does
> > it very well. I must mention again that if I want to select
> > the centre of a
> > circle right outside the view(or even scene coordinates)
> > surely I should have
> > a means of doing so. Having said that I do like your idea of
> > the scrolling
> > view. Anyhows if it can easily be done in Visual C++ then
> > surely Qt can
> > manage it!!! If grabmouse worked as I think that it should
> > then jobs done!!!
> > But for what ever reasons (for me)it does not.
> > I'm just trying to follow the example, but re-write it in
> > Qt(as close as
> > possible)
> > I will look into trying your idea of installing an event
> > filter on the entire
> > app. I have tried to create a cut down example of the
> > problem as Brad
> > suggested:-
>
> -- code sniped
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list