このページでは

Utils::NetworkAccessManager Class

class Utils::NetworkAccessManager

NetworkAccessManager クラスは、Qt Creator で使用するネットワークアクセスマネージャーを提供します。詳細...

Header: #include <NetworkAccessManager>

パブリック関数

NetworkAccessManager(QObject *parent = nullptr)

静的パブリックメンバー

Utils::NetworkAccessManager *instance()

再実装された保護された関数

virtual QNetworkReply *createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData) override

詳細な説明

一般的な初期化、Qt Creator ユーザーエージェント。

NetworkAccessManager::instance によって返されるインスタンスは、できればメインスレッドで使用すべきです。コンストラクタは、マルチスレッドでの使用のみを目的として提供されています。

メンバ関数のドキュメント

NetworkAccessManager::NetworkAccessManager(QObject *parent = nullptr)

親としてparent を持つネットワークアクセスマネージャのインスタンスを作成します。

[override virtual protected] QNetworkReply *NetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData)

ネットワークアクセスマネージャーが、outgoingData に対してop 操作を実行するためのrequest を作成します。

[static] Utils::NetworkAccessManager *NetworkAccessManager::instance()

メインスレッドで使用するネットワークアクセスマネージャのインスタンスを返します。

Copyright © The Qt Company Ltd. and other contributors. 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.