title: Newbie problem with QT C++ - Qimage dont work?
body: <p>I am trying to do console application to read pixels from image:</p>
  
  <pre><code>#include &lt;QtCore/QCoreApplication&gt;
  #include &lt;QtGui/QImage&gt;
  
  #include &lt;iostream&gt;
  
  int main(int argc, char *argv[])
  {
      QCoreApplication a(argc, argv);
      QImage *img = new QImage("adadad.jpg");
  
      //std::cout &lt;&lt; "Type filename:" &lt;&lt; std::endl;
      img-&gt;isNull();
      return a.exec();
  }
  </code></pre>
  
  <p>That doesn't work I got: <strong>(IT doesn't compile, but anyway file isn't exist yet...)</strong> </p>
  
  <pre><code>File not found: tmp/obj/debug_shared/main.o:: In function `main':
  </code></pre>
  
  <p>What is going on? Is it impossible to use Qimage with console app?!</p>
  
  <p><strong>EDIT:</strong>
  <a href="https://i.stack.imgur.com/jODPa.png" rel="nofollow noreferrer">screen</a></p>