title: Providing Q_PROPERTY in subclass of Q_OBJECT result in Error 1
body: <p>I need your help solving the following problem:</p>
  
  <p>I have a base class, that derives from QObject and has the <code>Q_OBJECT</code> macro. In another class i want to subclass the base class and provide properties for the use in qml (<code>Q_PROPERTY</code>).</p>
  
  <p>But it seems that i am missing a very basic piece of information, because i cannot get this going</p>
  
  <p><strong>Baseclass:</strong></p>
  
  <pre><code>#ifndef A_H
  #define A_H
  #include &lt;QObject&gt;
  
  class A: public QObject
  {
      Q_OBJECT    
      Q_PROPERTY(QString name READ getName CONSTANT)
  ...
  </code></pre>
  
  <p><strong>Subclass:</strong></p>
  
  <pre><code>#ifndef B_H
  #define B_H
  #include "classpath/A.h"
  class B: public A
  {
      Q_OBJECT
      Q_PROPERTY(QString type READ getType WRITE setType NOTIFY typeChanged)
  ...
  </code></pre>
  
  <p>Furthermore i have registered the type for qml <code>qmlRegisterType&lt;B&gt;("CustomClasses",1,0,"B");</code></p>
  
  <p>In the qml file i am simply creating an B item <code>B{ type: "B" }</code></p>
  
  <p>The error i get is the following: <code>[debug/moc_b.cpp] Error 1</code></p>
  
  <p>Not very informative for me and my Qt knowings</p>
  
  <p>If i remove the <code>Q_OBJECT</code> macro i geht <code>Cannot assign to non-existent property type</code></p>
  
  <p>I hope one of you can explain what im doing wrong!</p>
  
  <p>Thanks in advance!</p>