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

Is there a way to filter out QWebPage::Back?

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: WebKit
    • Labels:
      None
    • Environment:

      Windows 7, Windows XP, Ubuntu 12.10
      Qt 4.8.5

      Description

      Cannot comment on https://bugreports.qt-project.org/browse/QTWEBKIT-392, here is summary:

      In webkit-based GUIs, it's important that a webpage does not go back if Backspace is pressed. The only sensible way to disable back moves is to inherit from QWebPage and handle QWebPage::Back in a triggerAction() overload.

      I tried it on 4.8.5, and it worked on the first page opened, but on other pages, e.g. if I follow a hyperlink, the triggerAction() overload is not called at all and page is rewinded to previous item in history.

      Is it a bug? If not, what is the reason?

        Attachments

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

          Activity

            People

            Assignee:
            allan.jensen Allan Sandfeld Jensen
            Reporter:
            andrey_x64 Andrey Rogozhnikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes