PDA

View Full Version : StatusBar customization



vivekyuvan
4th July 2017, 13:10
Hi
I am newbie to qt creator. I have a problem with Qstatusbar class. If i use QStatusbar in mainwindow it constantly appears in the bottom(left side) of mainwindow. but i need to display my status bar in top of my gui mainwindow. please share code example or Snippet? thanks

Santosh Reddy
4th July 2017, 13:47
Not possible with QMainWindow, you will have write a custom QWidget with layouts

d_stranz
5th July 2017, 18:58
Or you can add a QToolBar to the main window and add a QLabel to it to display your status messages. Set the allowed area to be Qt::TopToolBarArea and set movable and floatable to false.