From: Boris N. <bor...@gm...> - 2006-11-07 13:56:08
|
Hi, i use a qt4 mainwindow with an enhanced QGLWidget (simplescenemanager etc) > as > central widget. mouse navigation works in the osg viewport, but the ssm > does not > seem to receive keyboard events. i already tried the grabKeyboard() > command, but > then the rest of the qt4 qui does not receive any key events anymore... > as far as I know you only have to implement these two slots: private slots: void keyPressEvent(QKeyEvent* event); void keyReleaseEvent(QKeyEvent* event); and do not forget to ignore unprocessed events ( event->ignore(); ) Boris -- Boris Neubert University of Konstanz Computer Graphics and Media Design room: Z706 phone: 0049 (0) 7531 88 2768 email: ne...@in... |