I have the same problem with qt5 and qwinwidget. Did you found any solution? Thanks!
No, waiting for Mr. Patterson to lift me out of my situation as he has done before
You say it was working fine on qt4.8, but in another thread one had similar problem even with qt4.8. Could you tell me exact version of qt4.8 where this worked (qt4.8.0~qt4.8.6), so I could downgrade. Thanks!
1 person found this helpful
I ended up subclassing QWebView (where I needed keyboard input) and overriding mousePressEvent as follows:
void mousePressEvent(QMouseEvent *eventPress)
It works now.
It was working in Qt 4.8.5/6 on windows, but not on mac. There was a fix available for mac, but it was on qt source and you had to build the source.
In 5.x, it works on mac, but not on windows, strangely.
I was trying to avoid subclassing Qt UI classes, but gave your solution a try. It worked like a charm! Thanks a lot!