The attached patch adds functions to select all content of a QWebPage. There is also a helper function in QWebView to select the content. API docs added as well (assuming it will go into Qt 4.6; though I see no problems to add it to 4.5 since the changes are really straight forward.)
Created attachment 26167 [details] Patch to add QWebPage/QWebView::selectAll
Comment on attachment 26167 [details] Patch to add QWebPage/QWebView::selectAll I agree that the change is straight forward, and it looks correct. But I think this should be a function of QWebFrame only, not QWebPage or QWebView, because the selection is a property of a frame. In a HTML frameset with many frames each frame has its own selection.
Created attachment 27018 [details] Updated patch as suggested by Simon
Created attachment 27020 [details] Updated as discussed with Simon on IRC
Comment on attachment 27020 [details] Updated as discussed with Simon on IRC r=me
Landed in r40228