title: cannot convert 'int*' to 'ABC*' in assignment
body: <p>I can't figure out this little compile error...</p>
  
  <p>file.h</p>
  
  <pre><code>    #ifndef FILE_H
      #define FILE_H
  
      class ABC: public QWidget
      {
          Q_OBJECT
  
      public:
          ABC(QWidget* parent) : QWidget(parent)
          {       
      ..
          }
      ..
      };
  
      class BCD : public QDialog
      {
      ....
  
          ABC* m_abc;
      };
  #endif
  </code></pre>
  
  <p>in file.cpp</p>
  
  <pre><code>#include "file.h"
  BCD::BCD()
  {
    ....
      m_abc = new ABC::ABC(ui-&gt;frame);   /// line with errors
  }
  </code></pre>
  
  <p>getting errors</p>
  
  <pre><code>expected type specifier
  cannot convert 'int*' to 'ABC*' in assignment
  expected ;
  </code></pre>
  
  <p>So i try to research to find causes of this error... and check possible issues... (like in this question <a href="https://stackoverflow.com/questions/8845117/error-expected-type-specifier-before-classname">Error: expected type-specifier before &#39;ClassName&#39;</a>)</p>
  
  <p>My include guards are fine, classes are set up fine, intellisense finds all symbols... </p>
  
  <p>Changing line to </p>
  
  <pre><code>m_abc = new ::ABC::ABC(ui-&gt;frame); 
  </code></pre>
  
  <p>results in the errors:</p>
  
  <pre><code>expected type specifier before :: token
  cannot convert 'int*' to 'ABC*' in assignment
  expected ; before '::' token
  </code></pre>
  
  <p>where can i find my error ?</p>
  
  <p>Sorry I cannot list the entire code.</p>