Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt4.8 webview has keyevent problem
hhacker last edited by
My environment is qt4.8 with win7,and I was using webview(inherits QGraphicsWebView) to display flashes,the problem is flash *can not receive keyboard event *anyway ,I have checked element if it has focus by these codes:
QWebHitTestResult hit = page()->mainFrame()->hitTestContent(pressPoint.toPoint());
hit = page()->mainFrame()->hitTestContent(pressPoint.toPoint());
flash object do has focus when I clicked in flash area,somehow it didn't receive any keypress events.
I have tried to compile it with Qt 5.2,and it didn't have this bug.
I can't port my project to Qt 5.2 for some reason.
Is there anyway to fix this bug?any advice will be helpful,thanks for help.