[webkit-qt] feature request: get selection rect

Roman Evstifeev someuniquename at gmail.com
Tue Apr 13 08:34:16 PDT 2010

Can something like this be added to QtWebKit? (mybe in more appropriate place)

QRectF QWebPage::selectionRect() const {
  return d->page->focusController()->focusedOrMainFrame()->selectionBounds(false);

I need to know current selection Rect, because i have few QWebViews
lined up, and showed in the scrollArea.
(see screenshot
Scrollbars of QWebViews a turned off, and i need to scroll with my
scrollArea to the selection, like a single QWebView does.
knowing selectionRect i easily can know the position, to which i should scroll.

More information about the webkit-qt mailing list