Hi, I would like to know how I can make a Widget (QLabel) that has been added to the QStatusBar expand to occuby the entire free space. If I add permanent widgets to the right and an ordinary QLabel which is placed to the left of the statusbar, I have a lot of free space in between. Adding something like:
Qt Code:
  1. QLabel::setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ) );
To copy to clipboard, switch view to plain text mode 
did not help.

I also would like to know, how to draw a border around the whole QStatusbar widget. Right now, I can ( to some extent ) define the borders of the individual QLabels inside the statusbar but not the whole statusbar itself.


Thanx in advance
momesana