Bug 30712 - [Qt] QWebFrame should have a equivalent of QWebFrame::hitTestContent() for QRectF
Summary: [Qt] QWebFrame should have a equivalent of QWebFrame::hitTestContent() for QR...
Status: RESOLVED DUPLICATE of bug 36111
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Benjamin Poulain
URL:
Keywords: Qt
Depends on:
Blocks: 31552
  Show dependency treegraph
 
Reported: 2009-10-23 02:42 PDT by Benjamin Poulain
Modified: 2010-03-16 04:48 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***