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

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

Usecase:
I need to know current selection Rect, because i have few QWebViews
lined up, and showed in the scrollArea.
(see screenshot
http://kde-apps.org/content/preview.php?preview=1&id=122981&file1=122981-1.png&file2=&file3=&name=NExp
)
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.
_______________________________________________
webkit-qt mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt

Reply via email to