Obsolete Members for QAbstractOAuth2

The following members of class QAbstractOAuth2 are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Properties

  • (deprecated in 6.13) scope : QString

Public Functions

(deprecated in 6.11) virtual QNetworkReply *post(const QUrl &url, QHttpMultiPart *multiPart)[see note below]
(deprecated in 6.11) virtual QNetworkReply *post(const QUrl &url, const QByteArray &data)[see note below]
(deprecated in 6.11) virtual QNetworkReply *put(const QUrl &url, QHttpMultiPart *multiPart)[see note below]
(deprecated in 6.11) virtual QNetworkReply *put(const QUrl &url, const QByteArray &data)[see note below]
(deprecated) QString scope() const
(deprecated) void setScope(const QString &scope)

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

Signals

(deprecated in 6.13) void error(const QString &error, const QString &errorDescription, const QUrl &uri)
(deprecated) void scopeChanged(const QString &scope)

Property Documentation

[deprecated in 6.13] scope : QString

This enumeration is deprecated since 6.13. We strongly advise against using it in new code.

Use requestedScopeTokens and grantedScopeTokens properties instead. This property will be removed in Qt 7.

This property holds the desired scope which defines the permissions requested by the client.

The scope value is updated to the scope value granted by the authorization server. In case of an empty scope response, the requested scope is assumed as granted and does not change.

The fact that this property serves two different roles, first as the requested scope and later as the granted scope, is an historical artefact. All new code is recommended to use QAbstractOAuth2::requestedScopeTokens and QAbstractOAuth2::grantedScopeTokens.

Access functions:

QString scope() const
void setScope(const QString &scope)

Notifier signal:

void scopeChanged(const QString &scope)

See also QAbstractOAuth2::grantedScopeTokens and QAbstractOAuth2::requestedScopeTokens.

Member Function Documentation

[override virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::deleteResource(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::deleteResource(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated DELETE request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: DELETE

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

[signal, deprecated in 6.13] void QAbstractOAuth2::error(const QString &error, const QString &errorDescription, const QUrl &uri)

This function is deprecated since 6.13. We strongly advise against using it in new code.

Use serverReportedErrorOccurred instead

Signal emitted when the server responds to the authorization request with an error as defined in RFC 6749 error response.

error is the name of the error; errorDescription describes the error and uri is an optional URI containing more information about the error.

See also QAbstractOAuth::requestFailed() and QAbstractOAuth2::serverReportedErrorOccurred().

[override virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::get(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::get(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated GET request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: GET

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::head(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated HEAD request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: HEAD

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

[override virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::post(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::post(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated POST request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: POST

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

[virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::post(const QUrl &url, QHttpMultiPart *multiPart)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated POST request and returns a new QNetworkReply. The url and multiPart are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also post(), QHttpMultiPart, and Hypertext Transfer Protocol -- HTTP/1.1: POST.

[virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::post(const QUrl &url, const QByteArray &data)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated POST request and returns a new QNetworkReply. The url and data are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also post() and Hypertext Transfer Protocol -- HTTP/1.1: POST.

[override virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::put(const QUrl &url, const QVariantMap &parameters = QVariantMap())

This function is deprecated since 6.11. We strongly advise against using it in new code.

Reimplements: QAbstractOAuth::put(const QUrl &url, const QVariantMap &parameters).

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated PUT request and returns a new QNetworkReply. The url and parameters are used to create the request.

See also: Hypertext Transfer Protocol – HTTP/1.1: PUT

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

[virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::put(const QUrl &url, QHttpMultiPart *multiPart)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated PUT request and returns a new QNetworkReply. The url and multiPart are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also put(), QHttpMultiPart, and Hypertext Transfer Protocol -- HTTP/1.1: PUT.

[virtual invokable, deprecated in 6.11] QNetworkReply *QAbstractOAuth2::put(const QUrl &url, const QByteArray &data)

This function is deprecated since 6.11. We strongly advise against using it in new code.

Please use QtNetwork classes directly instead, see HTTP method alternatives.

Sends an authenticated PUT request and returns a new QNetworkReply. The url and data are used to create the request.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

This is an overloaded function.

See also put() and Hypertext Transfer Protocol -- HTTP/1.1: PUT.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.