title: PyQt5 - How to emit signal from worker tread to call event by GUI thread
body: <p>As I Mentioned in Title. How can i do something like this?</p>
  
  <pre><code>class Main(QWidget):
  
          def __init__(self):
  
                  super().__init__()
  
          def StartButtonEvent(self):
  
                  self.test = ExecuteThread()
                  self.test.start()
  
          def MyEvent(self):
  
                  #MainThreadGUI
  
  class ExecuteThread(QThread):
  
          def run(self):
  
                  # A lot of work
  
                  # Signal to main thread about finishing of job = mainthread will perform MyEvent
  </code></pre>
  
  <p>I found some tutorials here <a href="https://stackoverflow.com/questions/9614947/pyqt4-emiting-signals-in-threads-to-slots-in-main-thread">pyqt4 emiting signals in threads to slots in main thread</a> </p>
  
  <p>and here <a href="https://stackoverflow.com/questions/37081098/emit-signal-from-pyqt-qthread-causes-python-exe-crash">Emit signal from pyQt Qthread</a></p>
  
  <p>But it seems it does not working in PyQt5 :/</p>