Hi 

I have a bug where, after closing an OSG widget, keyboard events don't get sent 
properly. 

We use Qt4.8.4 and OpenSceneGraph (latest version from SVN). We create several 
qwidgets as tabs widgets, and have the ability to close them (using a kb short 
cut or the close button on the tab). The OSG widget uses osgQt.

When the OSG widget is closed, I no longer get keyboard event anywhere in the 
app even though focus appears to be properly set.

Using the debugger, I see the event is received in QT's code in
- (void)sendEvent:(NSEvent *)event 
in qcocoasharedwindowmethods_mac_p.h 

which then calls 
[super sendEvent:event]; 
but this fails somewhere in Apple's toolkit code and the application beeps (not 
by calling Qt's beep function). 
It would normally end up calling 
- (void)keyDown:(NSEvent *)theEvent 
in qcocoaview_mac.mm 

I tracked down the closing of the OSG widget to see if it was doing anything 
weird, but it all seems fine.

I don't know if the bug is with our code, Qt or OSG but I'm failing to find out 
why this is happening and was wondering if anyone had come across anything like 
that. 


Mike

----
Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792

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

Reply via email to