Bug 70199

Summary: QWebView and wrong Qt::Key_Menu handling
Product: WebKit Reporter: szyk <szyk100>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: andersca
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   

szyk
Reported 2011-10-16 07:01:29 PDT
Now I use signal QWebView::customContextMenuRequested(const QPoint&) to create my own menu. Inside slot I use mOutput->page()->mainFrame()->hitTestContent(aPoint). It works well with right mouse click. But it completly not work for Qt::Key_Menu, but I notice that in that case QPoint == (0,0). I asked on Qt Centre what should I do but I don't get satisfy answers. Wysota tell me that I should get selection geometry and url link geometry. But he has no idea how to do that. I also don't have any ideas how to solve that problem :/ But obviously there should be easy way to display custom menu near selection or url link by pressing Qt::Key_Menu.
Attachments
Note You need to log in before you can comment on or make changes to this bug.