Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, February 2008
QWebPage needs additions to findText()


Message 1 in thread

QWebPage::findText() works great, but it doesn't cover "find next" or "find 
previous" type functionality (e.g. proceed to the 2nd occurrence of a word on 
a page if the 1st one wasn't what I'm looking for).

Please consider adding this functionality - it will be useful for almost any 
serious usage of QtWebKit.

Regards
bero

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 2 in thread

On Tuesday 26 February 2008 17:42:58 Bernhard Rosenkränzer wrote:
> QWebPage::findText() works great, but it doesn't cover "find next" or "find
> previous" type functionality (e.g. proceed to the 2nd occurrence of a word
> on a page if the 1st one wasn't what I'm looking for).
>
> Please consider adding this functionality - it will be useful for almost
> any serious usage of QtWebKit.
>
> Regards
> bero
>
> To unsubscribe - send "unsubscribe" in the subject to
> qt4-preview-feedback-request@xxxxxxxxxxxxx

If you call findText multiple times in a row it will continue moving through 
the document.  If you pass the QWebPage::FindBackward flag it will find the 
previous.

In the browser demo I added shortcuts for find, "find next" and "find 
previous", but that patch went in after the beta was branched.  If you check 
out the Qt snapshots you will see example usage.

-Benjamin Meyer

Attachment:

Attachment: signature.asc
Description: This is a digitally signed message part.