Hi Mike,

Unfortunately I don't have an OSX box or much experience with Qt to
contribute to resolving this issue, hopefully others might be able to help,
but the combination of Qt+OSX is likely to be quite niche so it might
something you'll need to spearhead.

As a general comment that might help the process of characterizing the bug,
does the same problem appear on other OS's?  Does it appear on other
versions of Qt?

I do wonder if the newly released Qt5 might have changed things under OSX -
possible for better or worse!

Robert.

On 20 December 2012 09:15, Mike Krus <[email protected]> wrote:

> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to