Revert "QMainWindow is not needed"

This reverts commit 14df06163ac82ac08a489e27c8c3656770bab775, that
broke the titlebar menu - for some reason it didn't show up anymore.