title: PyQt - make window top level
body: <p>i need to make my window top level when i need.
  Code of creating window:</p>
  
  <pre><code>class Application(QtGui.QMainWindow):
      def __init__(self, parent=None):
          QtGui.QMainWindow.__init__(self, None, Qt.Tool | Qt.FramelessWindowHint)
          self.setFocusPolicy(Qt.StrongFocus)
          self.setAttribute(Qt.WA_QuitOnClose, True)
  </code></pre>
  
  <p>And when i need i do:</p>
  
  <pre><code>self.setWindowFlags(Qt.WindowStaysOnTopHint)
  </code></pre>
  
  <p>But after running this part of code my window hides... I don't know, where is it. But my program doesn't close!
  Help! How can i make my window top most at need moment?</p>