Bug 30712

Summary: [Qt] QWebFrame should have a equivalent of QWebFrame::hitTestContent() for QRectF
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: WebKit QtAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED DUPLICATE    
Severity: Enhancement CC: abecsi, benjamin, hausmann, kenneth, laszlo.gombos, tonikitoo
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 31552    

Description Benjamin Poulain 2009-10-23 02:42:44 PDT
QWebFrame::hitTestContent() uses a QPoint which is appropriate for mouse usage.

For touch-based implementation of the view, a similar function is needed to get all the widgets inside a rect.
QTouchEvent return a list of TouchPoints. Those TouchPoints have the function TouchPoint::rect() to get the rect corresponding to the area taken by the finger. It is useful to use that rect to find a link, or a node that can deal with the click.

The function could be something like
QList<QWebElement> elementsForRect(QRectF).
Comment 1 Kenneth Rohde Christiansen 2009-10-26 10:28:47 PDT
Sounds like a good idea, though we should think a bit more about the API. Is this needed for 4.6?
Comment 2 Benjamin Poulain 2009-10-26 11:42:42 PDT
This could be for Qt 4.7. There is a few functions we could add in order to improve the handling of QTouchEvent. It is too late to add this in 4.6.
Comment 3 Simon Hausmann 2009-12-03 02:24:16 PST
This relates to the following requirement: http://bugreports.qt.nokia.com/browse/QTWEBKIT-13
Comment 4 Benjamin Poulain 2010-02-09 05:38:42 PST
This is no longer the plans. Sampling over the rect should do the trick.
Comment 5 Benjamin Poulain 2010-03-16 04:48:20 PDT

*** This bug has been marked as a duplicate of bug 36111 ***