[osg-users] bug in GraphicsWindowQt

2012-10-12 Thread Gianni Ambrosio
Hi, it seems there is a bug in GraphWidget::keyPressEvent( QKeyEvent* event ) at least in OSG 2.9.14 with Qt 4.8.2. I guess the problem is here: int remapKey(QKeyEvent* event) { KeyMap::iterator itr = mKeyMap.find(event-key()); if (itr == mKeyMap.end()) {

[osg-users] Bug in GraphicsWindowQt::WindowData?

2011-11-07 Thread Marius Kintel
Hi, GraphicsWindowQt::WindowData requires the parent widget of a graphics window to be of type GLWidget: struct WindowData : public osg::Referenced { WindowData( GLWidget* widget = NULL, GLWidget* parent = NULL ): _widget(widget), _parent(parent) {} GLWidget* _widget;

Re: [osg-users] Bug in GraphicsWindowQt::WindowData?

2011-11-07 Thread Marius Kintel
On Nov 7, 2011, at 17:18 PM, Robert Osfield wrote: I'm not the author of this particular bit of code but from cursory look it does seem to me that your interpretation is correct, and the the parent should of QWidget type rather than GLWidget type. Have you tried changing it at your end?

Re: [osg-users] Bug in GraphicsWindowQt::WindowData?

2011-11-07 Thread Robert Osfield
HI Marius, I'm not the author of this particular bit of code but from cursory look it does seem to me that your interpretation is correct, and the the parent should of QWidget type rather than GLWidget type. Have you tried changing it at your end? On the ABI front I don't think this change