title: qt How to put my function into a thread
body: <p>I'm a QT newbie. I have a class extend from widget like:</p>
  
  <pre><code>class myclass: public Qwidget
  {
  Q_OBJECT
  public:
    void myfunction(int);
  slots:
    void myslot(int)
    {
      //Here I want to put myfunction into a thread
    }
    ...
  }
  </code></pre>
  
  <p>I don't know how to do it. Please help me.</p>