title: How to test if WindowStaysOnTopHint flag is set in windowFlags?
body: <p>Is this supposed to return a boolean value?</p>
  
  <pre><code>&gt;&gt;&gt; win.windowFlags() &amp; QtCore.Qt.WindowStaysOnTopHint
  &lt;PyQt4.QtCore.WindowFlags object at 0x7ad0578&gt;
  </code></pre>
  
  <p>I already knew that</p>
  
  <pre><code># enable always on top
  win.windowFlags() | QtCore.Qt.WindowStaysOnTopHint
  
  # disable it
  win.windowFlags() &amp; ~QtCore.Qt.WindowStaysOnTopHint
  
  # toggle it 
  win.windowFlags() ^ QtCore.Qt.WindowStaysOnTopHint
  </code></pre>