I'm still having problems with QOSGWidget on Qt4.5 so to make the mouse wheel 
work in AdapterWidget you need to add this function


Code:

virtual void wheelEvent(QWheelEvent *event);


void AdapterWidget::wheelEvent(QWheelEvent *event)
{       
        _gw->getEventQueue()->mouseScroll((event->delta()>0) ? 
                        osgGA::GUIEventAdapter::ScrollingMotion::SCROLL_DOWN : 
                                    
osgGA::GUIEventAdapter::ScrollingMotion::SCROLL_UP);
}




------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8814#8814





_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to