title: c++ connect signal
body: <p>I got this thread.h file;</p>
  
  <pre><code>#ifndef THREAD_H
  #define THREAD_H
  
  #include &lt;QtGui&gt;
  #include &lt;QString&gt;
  
  #include &lt;tray.h&gt;
  class svThread : public QThread {
  
      public:
          bool getIsPaused();
          void checkSettings();
          virtual void run();
          void setPause(bool);
  signals:
          void mySignal(bool);
  };
  
  #endif // THREAD_H
  </code></pre>
  
  <p>and I got an tray application, named tray :P where i make a thread;</p>
  
  <pre><code>svThread a;
  </code></pre>
  
  <p>and I'm starting it.</p>
  
  <p>in tray.h I also got a slot </p>
  
  <pre><code>class Tray : public QWidget
  {
      Q_OBJECT
  
  public:
      Tray();
      QMenu *trayIconMenu;
  
      public slots:
          void settings();
          void pause();
          void setPause(bool);
  
  public:
      void createActions();
      void createTrayIcon();
  
      QAction *settingAction;
      QAction *quitAction;
      QAction *pauseAction;
      QSystemTrayIcon *trayIcon;
  };
  
  #endif
  </code></pre>
  
  <p>But how can I make that when I use <code>setPause();</code> in the thread.cpp file that he calls <code>setPause();</code> in the tray.cpp file?</p>