title: Inaccessible conversion in QObject
body: <p>Here is my sample code:</p>
  
  <pre><code>class hoho : public QObject
  {
      Q_OBJECT
  public:
      hoho() 
      {
          httpFetch = new HttpFetch(QUrl("http://www.google.com/"));
          connect(httpFetch, SIGNAL(Fetched()), this, SLOT(PrintData(QByteArray)));
      }
  
      void PrintData(QByteArray http)
      {
          qDebug()&lt;&lt;http;
      }
  
      HttpFetch *httpFetch;
  };
  </code></pre>
  
  <p>When I try to compile this, following error pops up</p>
  
  <pre><code>1&gt;main.cpp(15): error C2243: 'type cast' : conversion from 'HttpFetch *' to 'const QObject *' exists, but is inaccessible
  </code></pre>
  
  <p>This error comes as the class is derived from <code>QObject</code> (which is necessary for signal and slot mechanism).</p>
  
  <p>Can anyone tell me how to fix this?</p>