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

QWebEngineView urlChanged regression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.10.1
    • WebEngine
    • None
    • macOS 10.12.6
    • macOS

    Description

      I am generating a report as an HTML document and displaying it with a QWebEngineView. This report uses internal links such as <a href="#project_summary">.

      I have been using the following to add "Back" and "Forward" capabilities to a QWebEngineView:

         connect( mWebView, &QWebEngineView::urlChanged, this, [=] () {
            mUI->mActionBack->setEnabled( mWebView->history()->canGoBack() );
            mUI->mActionForward->setEnabled( mWebView->history()->canGoForward() );
         } );

       

      It seems that QWebEngineView::urlChanged is no longer emitted when clicking on these internal links even though the URL has changed.

      This is working in Qt 5.9.5, but not in 5.10.1 - using the maintenance tool versions.

      Attachments

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              asm Andy M
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes