For a QMainWindow
I can easily set a status bar. When I have a floating QDockWidget
, it behaves like a normal window (from user's perspective).
What I want to archive is to add a QStatusBar
to the floating QDockWidget
. With the signal topLevelChanged
I could hide the status bar when the window is docked.
But can I add a status bar to a QDockWidget
? At least in the Qt Creator form builder I can not (I have a context menu "Create Status Bar" for QMainWindow
, but not for QDockWidget
).
Any way to do it a runtime?