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. Replacing NetworkAccessManager features
Forum Updated to NodeBB v4.3 + New Features

Replacing NetworkAccessManager features

Scheduled Pinned Locked Moved QtWebEngine
2 Posts 1 Posters 1.3k Views 1 Watching
  • 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
    admoore
    wrote on 18 Feb 2015, 21:57 last edited by
    #1

    I'm porting my (Python/PyQt) QtWebKit application to QtWebEngine. I used to do some things using the QNetworkAccessManager, but now that this is gone I can't find equivalents in QWebView or QWebPage.

    Specifically:

    • How do I set the proxy server and port?

    • How do I handle certificate errors?

    • How do I handle unsupported content (file downloads, e.g.)?

    Any help with these questions would be very appreciated.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      admoore
      wrote on 25 Feb 2015, 14:36 last edited by
      #2

      Well, for posterity, I'll answer my own questions as best I can:

      • Proxy server any port can be set in the OS environment ("http_proxy") and the widget seems to respect this setting.

      • override QtWebEnginePage.certificateError, which should return true if we're ignoring the error. Unfortunately the widget doesn't actually call this function for a lot of certificate errors, so it's not working right now.

      • File downloads aren't supported, maybe in 5.5

      tl;dr - QtWebEngine is very young, wait for future versions for it to be usable.

      1 Reply Last reply
      0

      1/2

      18 Feb 2015, 21:57

      • Login

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