OK. It seems now it works.
I read this on docs:
"The policy is Qt::TabFocus if the widget accepts keyboard focus by tabbing, Qt::ClickFocus if the widget accepts focus by clicking, Qt::StrongFocus if it accepts both, and Qt::NoFocus (the default) if it does not accept focus at all."
And
"You must enable keyboard focus for a widget if it processes keyboard events. This is normally done from the widget's constructor. For instance, the QLineEdit constructor calls setFocusPolicy(Qt::StrongFocus)."
After adding setFocusPolicy(Qt::StrongFocus) in my OGL component, it works. It seemed to be focus was disabled.
Thanks.
Bookmarks