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. Multiple proxy configuration
Forum Update on Monday, May 27th 2025

Multiple proxy configuration

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 723 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.
  • M Offline
    M Offline
    Mr Gisa
    wrote on last edited by
    #1

    I often see application that allows the user to set a proxy but their form often look like this:

    0_1528062963973_a32f4827-620a-4c7a-9060-d25b61086d69-image.png

    0_1528063132218_ff116bce-3132-4ab6-b89b-35ef76c4a253-image.png

    They allow the user to specify more than one proxy, but QNetworkAccessManager::setProxy allows the user to pass only one QNetworkProxy.

    How does that work, how to allow the user to specify the proxies for each protocol and handle that in Qt?

    jsulmJ 1 Reply Last reply
    0
    • M Mr Gisa

      I often see application that allows the user to set a proxy but their form often look like this:

      0_1528062963973_a32f4827-620a-4c7a-9060-d25b61086d69-image.png

      0_1528063132218_ff116bce-3132-4ab6-b89b-35ef76c4a253-image.png

      They allow the user to specify more than one proxy, but QNetworkAccessManager::setProxy allows the user to pass only one QNetworkProxy.

      How does that work, how to allow the user to specify the proxies for each protocol and handle that in Qt?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mr-Gisa See http://doc.qt.io/qt-5/qnetworkaccessmanager.html#setProxy
      "In some cases, it might be necessary to select different proxies depending on the type of request being sent or the destination host. If that's the case, you should consider using setProxyFactory()."

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mr Gisa
        wrote on last edited by Mr Gisa
        #3

        Hmm, I got it, thank you very much. I will try to implement something like that.

        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