Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_network_kernel_qnetworkproxy.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
7proxy.setHostName("proxy.example.com");
9proxy.setUser("username");
10proxy.setPassword("password");
13
14
The QNetworkProxy class provides a network layer proxy.
void setHostName(const QString &hostName)
Sets the host name of the proxy host to be hostName.
void setUser(const QString &userName)
Sets the user name for proxy authentication to be user.
static void setApplicationProxy(const QNetworkProxy &proxy)
Sets the application level network proxying to be networkProxy.
void setType(QNetworkProxy::ProxyType type)
Sets the proxy type for this instance to be type.
void setPassword(const QString &password)
Sets the password for proxy authentication to be password.
void setPort(quint16 port)
Sets the port of the proxy host to be port.
QNetworkProxy proxy
[0]
serverDtls doHandshake & serverSocket