momesana
11th November 2006, 15:53
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:
QLabel::setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ) );
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
QLabel::setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ) );
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