Controls in Utils::ControlCanvas do not update with Win32 handle

classic Classic list List threaded Threaded
1 message Options
bclay bclay
Reply | Threaded
Open this post in threaded view
|

Controls in Utils::ControlCanvas do not update with Win32 handle

I am using the osgEarth 2.8 dev code branch with Qt 5.11 in a frameless window.  I added the code from the osgEarth control example.  The controls appear in the frameless window but the callbacks are not triggered.  For other keyboard and mouse interactions I implement the Qt virtual functions then pass the event to osgEarth / osg through an eventEnque->mouseMotion / press / release etc.  for the most part this works fine.  The Pick callback does not get called though which appears to be along the same thread that is that callbacks are not getting the signal that there was a mouse event.

If I use the same operation but do not pass the qt window ID into the osgEarth window creation which in turn does not explicitly use the osgViewer::GraphicsHandleWin32 class then the controls seem to work properly.

Is there some other call that I need to make to get the Util::Controls to receive their mouse events?

Bruce