PDA

View Full Version : How to put QStatusBar object to the top of a QMainWindow instead of to the bottom?



scrat75
17th May 2010, 09:57
Hi to all,

I'm a Qt newbie user,
and I'm here to ask the way to place a QStatusBar object at the top of a QMainWindow.
Infact usually the status bar is placed at the bottom.
I looked for in the list members of QStatusBar class (also in the ihnerited ones) if there is a method to achieve this task, but my searching failed...

Thanks in advance for your help.

tbscope
17th May 2010, 10:40
If you do not need QMainWindow, use a standard widget, set a layout and put a statusbar at the top and a central widget beneath it.
Be sure to also set the size grip to false.

Beware that you'll break every UI design code ever written