The QWidget is created over top of the menu. I tried it with a QLabel and it does the same thing. Creating the widget before the menu would do the opposite, the menu would be over the widget. Using QMainWindow::setCentralWidget places the widget below the menu. It's not a bug. Creating a widget with out managing its layout will place the widget in the top left corner of its parent.