title: How to make a window that occupies the full screen without maximising?
body: <p>I'm writing in python using Qt</p>
  
  <p>I want to create the application window (with decorations) to occupy the full screen size. Currently this is the code I have:</p>
  
  <pre><code>avGeom = QtGui.QDesktopWidget().availableGeometry()
  self.setGeometry(avGeom)
  </code></pre>
  
  <p>the problem is that it ignores window decorations so the frame is larger... I googled and what not, found this:</p>
  
  <p><a href="http://harmattan-dev.nokia.com/docs/library/html/qt4/application-windows.html#window-geometry" rel="noreferrer">http://harmattan-dev.nokia.com/docs/library/html/qt4/application-windows.html#window-geometry</a></p>
  
  <p>which seems to indicate I need to set the frameGeometry to the <code>avGeom</code> however I haven't found a way to do that. Also, in the comments in the above link it says what I'm after may not be even possible as the programme can't set the frameGeometry before running... If that is the case I just want confirmation that my problem is not solvable.</p>
  
  <p>EDIT:</p>
  
  <p>So I played around with the code a bit and this gives what I want... however the number 24 is basically through trial and error until the window title is visible.... I want some better way to do this... which is window manager independent..</p>
  
  <pre><code>avGeom = QtGui.QDesktopWidget().availableGeometry()
  avGeom.setTop(24)
  self.setGeometry(avGeom)
  </code></pre>
  
  <p>Now I can do what I want but purely out of trial and error</p>
  
  <p>Running Ubuntu, using Spyder as an IDE</p>
  
  <p>thanks</p>