The code as posted does not display a status bar. When you create the status bar it shows the specified text just fine (Linux, Qt 5.3).