@@ -43,14 +43,14 @@ type that is used to handle signals that might require user interaction and ther
43
43
need to be handled on the main thread. See in-depth discussion below.
44
44
45
45
:param connectionType: In most cases the default of using a ``Qt.BlockingQueuedConnection``
46
- is ok, to make a background thread wait for the main thread to answer such a request is
47
- fine and anything else is dangerous.
48
- However, in case the request was started on the main thread, one should execute a
49
- local event loop in a helper thread and freeze the main thread for the duration of the
50
- download. In this case, if an authentication request is sent from the background thread
51
- network access manager, the background thread should be blocked, the main thread be woken
52
- up, processEvents() executed once, the main thread frozen again and the background thread
53
- continued.
46
+ is ok, to make a background thread wait for the main thread to answer such a request is
47
+ fine and anything else is dangerous.
48
+ However, in case the request was started on the main thread, one should execute a
49
+ local event loop in a helper thread and freeze the main thread for the duration of the
50
+ download. In this case, if an authentication request is sent from the background thread
51
+ network access manager, the background thread should be blocked, the main thread be woken
52
+ up, processEvents() executed once, the main thread frozen again and the background thread
53
+ continued.
54
54
%End
55
55
56
56
QgsNetworkAccessManager( QObject *parent = 0 );
0 commit comments