title: PyQt4: how to make undercorated window with reserved space
body: <p>I'd like to make a panel-like application using PyQt4 for Linux. for this i need the window i created:</p>
  
  <ul>
  <li>to be undecorated</li>
  <li>to have reserved space</li>
  <li>to appear on all workspaces</li>
  </ul>
  
  <p>From reading <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwidget.html#details" rel="nofollow noreferrer">the documentation</a> i've got the idea that i should use QtWindowFlags. But i have no clue as to how to do that. Also i believe there should be a Qt.WindowType hint somewhere telling the WM the window's a "dock" application. I have made this with pygtk following <a href="https://stackoverflow.com/questions/3859045/preventing-window-overlap-in-gtk">this thread</a>, but here with Qt i don't really know how to handle this. (I need Qt for its ability to theme/skin application more easily.)</p>
  
  <p>Below is the current code i made (nothing extraordinary).</p>
  
  <pre><code>import sys
  from PyQt4 import QtGui
  
  class Panel(QtGui.QWidget):
  def __init__(self, parent=None): ## should the QtWindowFlag be here?
      QtGui.QWidget.__init__(self, parent) ## should the QtWindowFlag be there as well?
  
      self.setWindowTitle('QtPanel')
      self.resize(QtGui.QDesktopWidget().screenGeometry().width(), 25)
      self.move(0,0)
  
  def main():
      app = QtGui.QApplication(sys.argv)
      panel = Panel()
      panel.show()
      sys.exit(app.exec_())
      return 0
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>Can anyone help me with this? Thanks :)</p>