I'm a QT newbie. I have a class extend from widget like:

class myclass: public Qwidget
{
Q_OBJECT
public:
  void myfunction(int);
slots:
  void myslot(int)
  {
    //Here I want to put myfunction into a thread
  }
  ...
}

I don't know how to do it. Please help me.

Edit
Report