title: Passing arguments to a run() method of QThread
body: <p>I've subclassed my Qthread so I can implement my code in <code>run()</code> method. I have to pass it some parameters,</p>
  
  <p>I tried it like this, so what's wrong in here?</p>
  
  <pre><code>class QMyThread :
      public QThread
  {
  public:
      QMyThread();
      ~QMyThread(void);
      virtual void start(FILE *data, int sock, int bits);
  
  protected:
      virtual void run(FILE *data, int sock, int bits);
  };
  </code></pre>
  
  <p>run method;</p>
  
  <pre><code>void QMyThread::run(FILE *data, int sock, int bits)
  {
  //do stuff
  }
  </code></pre>
  
  <p>start the thread:</p>
  
  <pre><code>QMyThread *thread;
  thread-&gt;start(datafile, sockint, bitsint);
  </code></pre>
  
  <p>first it says the thread might not be initialized and then it crashes in the <code>start()</code> method with <code>SIGSEGV error</code>. Anyone can help me?</p>