title: QTimer and active status
body: <p>Here is my situation:</p>
  
  <p>I have connected what is follow:</p>
  
  <pre><code>connect(timer, SIGNAL(timeout()), this, SLOT(avg()));
  timer-&gt;start(5000);
  </code></pre>
  
  <p>the time computation of avg() is 1 second. So I should be having for the avg function, an average of 5 values.</p>
  
  <p>Inside the avg() function , is it allowed to write, while the timer is active, it calculates average like above:</p>
  
  <pre><code>do
  { 
  ... // Saving all values, within the 5 seconds of timer and averaging them
  
  }
  while **(timer-&gt;isActive())**;
  </code></pre>
  
  <p>My question / inquiry : is the bold field (timer ->isActive()) means that the loop will work and make the treatments while the timer hasn't timedout from the fixed 5 seconds?</p>