Doc: QNetworkProxyFactory: Mention libproxy in systemProxyForQuery

Documentation of QNetworkProxyFactory::systemProxyForQuery does not
include the libproxy integration, and may be misleading by hinting that
desktop environment integrations on other systems are unsupported.

Add this piece of information to the documentation to avoid
misunderstanding.

Pick-to: 6.3 6.2
Change-Id: Id3f14d4a617c25576cb1bd57a494ea77c882635d
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
bb10
Hu Jialun 2022-04-01 02:11:19 +08:00 committed by Mårten Nordheim
parent e4380b90ea
commit eff8f9b7fa
1 changed files with 5 additions and 0 deletions

View File

@ -1507,6 +1507,11 @@ void QNetworkProxyFactory::setApplicationProxyFactory(QNetworkProxyFactory *fact
SOCKS server for all queries. If SOCKS isn't enabled, it will use
the HTTPS proxy for all TcpSocket and UrlRequest queries.
On systems configured with libproxy support, this function will
rely on libproxy to obtain the proxy settings. Depending on
libproxy configurations, this can in turn delegate to desktop
settings, environment variables, etc.
On other systems, this function will pick up proxy settings from
the "http_proxy" environment variable. This variable must be a URL
using one of the following schemes: "http", "socks5" or "socks5h".