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

Add a way to set the QWebEngineView scroll position

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.6.1
    • Fix Version/s: None
    • Component/s: WebEngine
    • Labels:
      None

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes