title: How to pass an extra variable to a Qt slot
body: <p>I would like to know how to pass a separate variable into a slot.
  I cant seem to get it to work. Is there some way around this?</p>
  
  <p>This is my code:</p>
  
  <pre><code>QTimer * timer = new QTimer();
  connect(timer,SIGNAL(timeout()),this,SLOT(method(MYVARIABLE)));
  timer-&gt;start(4000);
  </code></pre>