Results 1 to 4 of 4

Thread: QT-Default Proxy Configuration [Linux]

  1. #1
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question QT-Default Proxy Configuration [Linux]

    Hello,

    do I have to provide an application specific mechanism to configure the proxy server or
    does QT provide a built-in way to set the ProxyServer for all QT-based applications (qtconfig does not allow to set it)? Or does it honor http_proxy environment variable by default?
    IMO it's quite insane to have to provide configuration options in each network application..

    Best regards

    Aqualoom

  2. #2
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QT-Default Proxy Configuration [Linux]

    Any Ideas here? It would also be interesting to know, how this kind of thing is handled for windows. Does QT use the system (i.e. IE) proxy settings?

  3. #3
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QT-Default Proxy Configuration [Linux]

    For the record:
    Qt Code:
    1. QNetworkProxyFactory::systemProxyForQuery()
    To copy to clipboard, switch view to plain text mode 
    should do what I need. Does not work for Linux though (QT 4.6)

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT-Default Proxy Configuration [Linux]

    QNetworkProxyFactory::setUseSystemConfiguration() is probably closer unless you want to manually get a proxy setting each time you issue a request. As you say, it doesn't do anything useful on Linux, but it is trivial to have your program honour an environment variable if that is acceptable.

Similar Threads

  1. Replies: 9
    Last Post: 23rd August 2012, 01:01
  2. Qt Configuration in kdevelope
    By praween in forum Qt Programming
    Replies: 0
    Last Post: 19th June 2009, 19:32
  3. QT Network Proxy Configuration
    By suresh in forum Qt Programming
    Replies: 7
    Last Post: 28th September 2007, 02:16
  4. Qt configuration
    By Krish_ng in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2007, 11:51
  5. Qt Configuration Problem?
    By Ammar in forum Newbie
    Replies: 1
    Last Post: 17th May 2007, 10:51

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.