title: PyQt5 Focus QMainWindow as first window
body: <p>I am building an application in pyqt, which is called by another application with another graphical interface not built in pyqt. I have a QMainWindow, the problem is that when the boot appears behind the other application, and I do not know how to make it appear with the focus.
  I try to pass window type in a constructor</p>
  
  <pre><code>Qt_WindowType
  </code></pre>
  
  <p>But does not work</p>
  
  <p>This is my class</p>
  
  <pre><code>class Foo(QMainWindow):
      def __init__(self, logger):
          super(Foo, self).__init__()
          # more code...
          self.show()
  
  if __name__ == '__main__':
      app = QApplication(sys.argv)
      ex = ScanGui(logger)
      sys.exit(app.exec_())
  </code></pre>
  
  <p>Thx.</p>