[osg-users] Qt not passing mouse to callbacks

Bruce Clay bclay1297 at gmail.com
Fri Feb 22 07:04:12 PST 2019


Hi,

I am using Qt 5.11 with OSG 3.6.2 and osgEarth 2.10 Dev on windows 7 and 10.

When I use the generic OSG window operations everything works fine but when I use Qt in a frameless mode I have to use the osgViewer::GrahicsHanleWin32 to mode to put OSG in the frameless window.  When I do this the mouse and keyboard event have to be handled separately.  I intercept the QT events and pass them on to to OSG using the osgGa::EventQueue.  This works ok for most direct operations but callbacks do not seem to get the mouse inputs they need such as drawing a bounding box or using the picker.

Is there a separate step required to pass the mouse events into callbacks so they can operate as they should 

Thank you!

Cheers,
Bruce

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







More information about the osg-users mailing list