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

Add a way to set the QWebEngineView scroll position

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.6.1
    • WebEngine
    • None

      Porting an application from Qt Webkit to Qt WebEngine. The web page displays application data, not HTTP content, and all navigation is handled internally, by overloading QWebEnginePage::acceptNavigationRequest().

      Qt Webkit QWebPage had a way to get and restore the current scroll position through

      somepos = mainFrame()->scrollPosition(),mainFrame()
      mainFrame()->setScrollPosition(somepos)

      QWebEngine page now (5.7) has a scrollposition property, but it is readonly as far as I can see from the documentation.

      Being able to set the scroll position is important so that the page position can be restored when the user moves back in the history.

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

            qt_webengine_team Qt WebEngine Team
            medoc92 medoc92
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes