Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. http proxy problem of QWebEngineView
Qt 6.11 is out! See what's new in the release blog

http proxy problem of QWebEngineView

Scheduled Pinned Locked Moved General and Desktop
qwebengineview
4 Posts 3 Posters 3.0k Views 2 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hi, I'm trying to port my Qt application from Webkit to WebEngine, but I'm failing to find a way to set proxy for QWebEngineView.
    I hava tried to set my Application's proxy as follows. But it's also failed to access the web page.
    QNetworkProxy m_networkProxy;
    QNetworkAccessManager *m_networkAccessManager;
    m_networkAccessManager = new QNetworkAccessManager;

    m_networkProxy.setType(QNetworkProxy::HttpProxy);
    m_networkProxy.setHostName(tr("web-proxy.corp.xx.com"));    
    m_networkProxy.setPort(8080);
    m_networkProxy.setUser("");
    m_networkProxy.setPassword("");
    m_networkAccessManager->setProxy(m_networkProxy);
    QNetworkProxy::setApplicationProxy(m_networkProxy);
    

    Is this an issue caused by the way I doing this or is this a bug ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      This thread might be of interest

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      ? 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        This thread might be of interest

        Hope it helps

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @SGaist
        Thanks for your information. I have tried to set the proxy as the way you gave me. But the QWebEngineView can't access to web site too.

        Thanks,
        Peng

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raidsan
          wrote on last edited by
          #4

          QWebEngineView use IE's proxy settings, just like google chrome

          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