title: PyQt emulate minimize button "_"
body: <p>How can I minimize window in PyQt the same way as when <code>_</code> is pressed?</p>
  
  <p>I use  </p>
  
  <pre><code>self.showMinimized()
  </code></pre>
  
  <p>It really minimizes window.<br>
  But there is no refocus to the previous window. As if focus is still on minimized window. </p>
  
  <p>How can I minimize and refocus to the previous window as if minimize button <code>_</code> is pressed?</p>