Do not call show() in the MainWindow constructor.