title: PyQt5 Qtimer don't start
body: <p>i'm stucked on a Qtimer that don't start, so the number that i need to update on the GUI is never showed.</p>
  <p>i don't want to use a while loop inside the code because i need to change some values in real time without any problem.</p>
  <p>i really don't understand why it don't start... or better, it start, but don't run the function update_label.</p>
  <p>any suggestion?</p>
  <p>Thanks a lot for your time!</p>
  <p>here is my code:</p>
  <pre><code>class MainWindow(QMainWindow):
      def __init__(self, *args, **kwargs):
          super(MainWindow, self).__init__(*args, **kwargs)
          
          self.setObjectName(&quot;MainWindow&quot;)
          self.resize(1300, 768)
          self.setMinimumSize(1300,768)
          _translate = QtCore.QCoreApplication.translate
          self.setWindowTitle(_translate(&quot;Bot&quot;, &quot;Bot&quot;))
          
          self.number = QtWidgets.QLabel(self)
          self.number .setGeometry(QtCore.QRect(1100, 10, 300, 20))
          self.number .setObjectName(&quot;number&quot;)
          
          
          self.show()
          
          
      
          
          self.threadpool = QThreadPool()
          self.updater = Updater()
          self.threadpool.start(self.updater)
          
          self.updater.update_progress.latest_number.connect(self.update_number)
  
      @pyqtSlot(str)
      def update_number(self, val):
          x = str(val)
          self.number.setText(&quot;Current block: &quot; + x)  
          
    
      
  class Updater(QRunnable):
      def __init__(self):
          super(Updater, self).__init__()
          self.update_progress = WorkerSignal()
          
          print(&quot;started&quot;)
          
          
      def run(self):
          self.timer = QTimer()
          self.timer.setInterval(2000)
          self.timer.timeout.connect(self.update_label)
          self.timer.start()
              
          
          
      def update_label(self):
          
          provider = configfile.provider
          number = str(nmbr.latest_numer(provider))
          self.update_progress.latest_number.emit(number)
          print(&quot;update label started&quot;)
  </code></pre>