expanding to the max. available space in a QStatusBar
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:
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
Re: expanding to the max. available space in a QStatusBar
OK, I had not given a stretchfactor to QStatusBar::addWidget().
With a stretchfactor of 1 it expands the widget the way I wanted.