Re: [osg-users] Problem with GUIEventAdapter mouse wheel event in Qt

2012-08-27 Thread Michael Schanne
Hi Robert, After debugging a bit more it appears that the issue begins when the event is taken off the event queue inside CompositeViewer. There is the following case statement inside CompositeViewer::eventTraversal() (line 755 in version 3.0.0): Code: case(osgGA::GUIEventAdapter::PUSH):

Re: [osg-users] Problem with GUIEventAdapter mouse wheel event in Qt

2012-08-23 Thread Robert Osfield
Hi Michael, I'm rather cold on this topic as I'm no Qt expert but from a general perspective of how osgGA::EventQueue::mouseScroll() and osgGA::GUIEventAdapter work together one should expect the X,Y values return for a scroll event to be of the previous mouse x,y position and the mouse

[osg-users] Problem with GUIEventAdapter mouse wheel event in Qt

2012-08-19 Thread Michael Schanne
Hi, I'm seeing something strange with mouse wheel (SCROLL) events in GUIEventAdapter. My app is a Qt app set up following the osgviewerQt example. I am trying to implement zooming with the mouse where the zoom follows the mouse cursor. In some cases I want to zoom with mouse clicks, and in