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

QWebEngineView selectedText() does not respond to triggerPageAction SelectAll

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.12.4
    • 5.12.3
    • WebEngine
    • None
    • Linux, Mac, Windows
    • All
    • 2c86c348d7a94f27d1e9e7a71c2435565cbe6fb5

    Description

      During porting of Sigil away from QtWebKit to QtWebEngine we noticed the following bug:

      After properly loading a QWebEngineView with an xhtml page and waiting for loadFinished (okay = true), the following code sequence always returns a null string for selectedText().

      m_Preview->triggerPageAction(QWebEnginePage::SelectAll);
      m_Preview->selectedText();

      If I instead use triggerPageAction(QWebEnginePage::Copy) after the SelectAll, the clipboard shows the expected text properly.

      So selectedText() is not properly being set by the SelectAll action.

      There are many similar bugs to this in the QTBUG database that seems to have been fixed in 5.10 timeframe but this bug has not or somehow crept back in.

      Attachments

        Issue Links

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

          Activity

            People

              pvarga Peter Varga
              kevinhendricks Kevin B. Hendricks
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes