[PyKDE] Newbie Geometry Management Questions...

Gordon Tyler gordon at doxxx.net
Thu Sep 2 13:22:15 BST 2004


Timothy Grant wrote:
> Two questions on geometry management:
> 
> 1) I have written some code containing a QSplitter, 2 QListViews, and
> a QStatusBar.  The QSplitter and the QStatusBar are then placed into a
> QVBox. This works great until I resize the window, and then the
> StatusBar starts to increase in height. I've been reading up on
> sizeHints, but haven't found an example I understand yet.

Have you tried looking at QMainWindow? It handles the menubar and 
statusbar automatically for you. Just call menuBar() and statusBar() on 
the QMainWindow instance to get access to them for changing their 
properties.

Ciao,
Gordon




More information about the PyQt mailing list