Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80858

Consider controller like approach for findText() workflow

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8.0
    • WebEngine
    • None

      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
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt_webengine_team Qt WebEngine Team
            emdek MichaƂ Dutkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes