title: Qt compiling error 1
body: <p>When i try to compile my program i get this</p>
  
  <pre><code>error: [tmp/moc/debug_shared/moc_window.cpp] Error 1
  </code></pre>
  
  <p>I have a class called Window. when I comment the Q_OBJECT line it compiles, but I can't use any slots.</p>
  
  <pre><code>class Window : public QWidget {
    // Q_OBJECT
  public:
    Window();
  public slots:
    void update();
  };
  </code></pre>
  
  <p>I have QT 4.7 installed.</p>
  
  <p>Any Idea why it doesn't compile when I uncomment the Q_OBJECT line?
  Thanks for any help.</p>