Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. There is no way to disable back/forward navigation on Qt Quick WebEngineView

There is no way to disable back/forward navigation on Qt Quick WebEngineView

Scheduled Pinned Locked Moved Solved QtWebEngine
webengineviewwebenginewebengine qt5
2 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andriy
    wrote on last edited by
    #1

    I writing hibrid desktop application where I have a web view to show some backend webpages, and i need to disable navigation with "Backspace" or "Shift+Backspace" like in browser, when we can move back and forward through history. This thing is realy blocks me.
    There is a bug, i report QTBUG-53824 with some more detail and example, but I need some solution faster. Thanks!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Andriy
      wrote on last edited by
      #2

      The solution was simple, i was inattentive, but Web Engine Team helps me, thanks guys

      webView.onNavigationRequested: {
                  if(request.navigationType === WebEngineView.BackForwardNavigation) {
                      print("onNavigationRequested", request.url)
                      request.action = WebEngineView.IgnoreRequest;
                  }
              }
      
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved