Important: Please read the Qt Code of Conduct -

In WebEngineView how can ignore a request ?

  • On WebView it's possible to do:
    onNavigationRequested: {
    // detect URL scheme prefix, most likely an external link
    var schemaRE = /^\w+:/;
    if (schemaRE.test(request.url)) {
    request.action = WebView.AcceptRequest;
    } else {
    request.action = WebView.IgnoreRequest;
    // delegate request.url here

    but I can't see on the documentation a way to do the same with the new WebEngineView
    Is It possible ?


Log in to reply