I converted my Qt application from Qt 5.3 to 5.6. Previously I used to use QGLWidget and now upgraded to QOpenGLWindow contained in a QWidget. I would like my window to handle some key press events. QOpenGLWindow does have protected methods to handle the keyboard events. However, as opposed to the old QGLWidget, it does not have setFocus() method and my handlers are not being called. What is the remedy? Even when I tried to resort to setting focus to the owning container then manually piping events to QOpenGLWindow, no events seem to come.
Asked
Active
Viewed 249 times