Re: [osg-users] OSG + QT + Mac focus issue
Hi Mike, Good to hear from you! I'm under the same configuration as you (Mike), so I'd be interested if you come up with something. We are planning on switching for Qt5 for our next major release, so our focus is on that and fixing what comes up there. I submitted a bunch of CMake - file changes to make OSG build with qt5 nicely, but I don't know if they are integrated yet. If need be, I can send you the diffs. - Kristofer Tingdahl -- Kristofer Tingdahl, Ph. D. CEO dGB Earth Sciences ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OSG + QT + Mac focus issue
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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG + QT + Mac focus issue
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 m...@mve.com 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org