PDA

View Full Version : Frame around whole statusbar



binaural
22nd April 2010, 17:26
Hi,

I would like to add frame around whole status bar. Same properties like for QFrame (panel, sunken...).
Is there any easy way how to implement this?

I try to design frame with some widgets and then add to status bar with addWidget() property but status bar remain empty.

Thanks in advance

Marek

Lykurg
22nd April 2010, 18:14
An easy approach would be to subclass QStatusBar and reimp the paint event. There draw your frame using QStylePainter and then call the base class implementation.