Specify that you need an instance of QNetworkAccessManager per thread
The class is not thread safe, so one instance is not enough for whole application. Mention that QNetworkAccessManager instance can only be used from the thread it belongs to because it is a QObject. Change-Id: I56184e4f8fbd36aca3f6677310431eab88346e6e Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
6cece0f43a
commit
9fdbd9dce9
@ -178,7 +178,9 @@ static void ensureInitialized()
|
||||
it sends. It contains the proxy and cache configuration, as well as the
|
||||
signals related to such issues, and reply signals that can be used to
|
||||
monitor the progress of a network operation. One QNetworkAccessManager
|
||||
should be enough for the whole Qt application.
|
||||
instance should be enough for the whole Qt application. Since
|
||||
QNetworkAccessManager is based on QObject, it can only be used from the
|
||||
thread it belongs to.
|
||||
|
||||
Once a QNetworkAccessManager object has been created, the application can
|
||||
use it to send requests over the network. A group of standard functions
|
||||
|
Loading…
Reference in New Issue
Block a user