title: Using a QNetworkAccessManager.get, how can I decide to abort?
body: <p>I am attempting to use the QT QNetworkAccessManager class to manage some downloads in a multi-threaded C++/QT application. </p>
  
  <p>On worker <em>thread</em> (edit: the thread is seperate for other reasons aside from doing the download), I'm would like to do a get to an external server and be ready to receive the results with the code:</p>
  
  <pre><code>...
  m_nam = new QNetworkAccessManager(this);
  QNetworkReply *reply = m_nam-&gt;get(request);
  connect(m_nam, SIGNAL(finished(QNetworkReply *)), this, 
          SIGNAL(finished(QNetworkReply *)));
  ...
  </code></pre>
  
  <p>But I might decide, before the download is finished, that I'm not interested in the result. </p>
  
  <p>So I'd like to set up a way to disconnect the connection from another thread by emitting a signal do_abort().</p>
  
  <p>What suggests itself is:</p>
  
  <pre><code>connect(this, SIGNAL(do_abort()), reply, SLOT(abort()));
  </code></pre>
  
  <p>But I don't think that will work because abort is not slot of QNetworkReply. </p>
  
  <p>So how can I set a mechanism where I can stop this download from another thread? I could subclass QNetworkReply and give that class the appropriate slot. But I'd like to understand the situation also. </p>