Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.0
-
None
Description
Current API for finding text on the page is simply wonky.
Attached below is draft of the API proposed for QtWebKit to allow for user friendly way to handle text search.
QWebFindController { void clear(); void findNext(); void findPrevious(); void setText(const QString &text); void setOptions(FindFlags options); QString text() const; FindFlags options() const; int matchesCount() const; int currentMatch() const; bool hasResults() bool const; bool isFinished() bool const;signals: void resultsChanged(); // matches changed (due to content changes or setters find*() calls) void findFinished(); // find*() calls finished }
Attachments
Issue Links
- relates to
-
QTBUG-50420 findText improvements
- Closed