Re: [osg-users] Keyboard or mouse handler from Qt
I appreciate the concern which is been rose. The things need to be sorted out because it’s not about the individual but it can be with everyone Auto Quotes (http://www.autoquotes247.net) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=11078#11078 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Keyboard or mouse handler from Qt
You don't have to do anything in Qt. Unless you explicitly handle a key press event in Qt and delete the event it will pass on to OSG. (Sorry not at my computer right now to find an example ) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10880#10880 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Keyboard or mouse handler from Qt
Hello forum, I am using the Qt's GUI framework to interact with the osg scene. i am using AdapterWidget and i would like to capture the GUI events from the Qt and pass that to the OSG's key-board handler. in the AdapterWidget.cpp there is a function : *' void AdapterWidget::keyPressEvent( QKeyEvent* event ) { _gw-getEventQueue()-keyPress( (osgGA::GUIEventAdapter::KeySymbol) *(event-text().toAscii().data() ) ); } ** And i have my own keyboard handler class that is the subclass of osgGA::GUIEventHandler and i have over-ridden the handle( ) function to capture keyboard events and act acccodingly. I do not undestand how map the above 2 together so that the event triggered from Qt will be caught by my keyboard handler. Any hint? Regards Sajjad ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org