title: use of undeclared identifier 'connect'
body: <p>me again! :-[</p>
  
  <p>I'm trying to write a simple downloader in qt. it's based on this example: <a href="http://www.ggkf.com/qt/qnetworkrequest-to-download-an-image" rel="noreferrer">http://www.ggkf.com/qt/qnetworkrequest-to-download-an-image</a> </p>
  
  <p>downloader.cpp:</p>
  
  <pre><code>void Downloader::GetImage( QString _url, QNetworkAccessManager *qnam ) {
      connect( qnam, SIGNAL( finished( QNetworkReply *) ), this, SLOT( replyFinished(   QNetworkReply * ) ) );
  
      QUrl url = QUrl( _url );
      QNetworkRequest request( url );
  
      qnam-&gt;get( request );
  }
  </code></pre>
  
  <p>but i get the following error:</p>
  
  <pre><code>/Users/name/ssl/downloader.cpp:19: error: use of undeclared identifier 'connect'
  connect( qnam, SIGNAL( finished( QNetworkReply *) ), this, SLOT( replyFinished( QNetworkReply * ) ) );
  </code></pre>
  
  <p>can anyone of you explain me this error? :-)</p>
  
  <p>thanks in advance</p>