[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);
}
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.
More information about the webkit-qt
mailing list