title: Syncing activity in PyQt QThreads
body: <p>I'm playing around with PyQt, and QThreads.  It seems that if I use the code that I've put in <a href="http://pythonfiddle.com/pyqt-syncing-problem" rel="nofollow">this python fiddle</a> (note that the top section is auto-generated code from QtDesigner), where the current value of the loop is printed both in the loop in the slave thread and the loop controlling the progress bar, then the loops keep in sync, the values match at all points as the program runs, and the progress bar displays accurately the proportion of the slave thread completed.</p>
  
  <p>In response to a comment below, this program in its current state actually does what I want it to - it just prints out, to the terminal, the value of the loop in the slave thread and the the value in the loop which controls the progression of the progress bar.</p>
  
  <p>However, commenting out line 121 (i.e. if you don't print the current value in the progress bar loop), results in the progress bar reaching 100% (i.e. finishing 300 iterations) when the slave thread loop has only reached ~130 iterations (i.e. the progress bar completes about 100% faster).</p>
  
  <p>Have I done something naïvely stupid / wrong - is there a better way to complete what I want to do?!</p>