Fix the menu slides up automatically
QWidget will be treated as an independent window if it's constructed
without a parent. The menu slides up when the main window loses focus,
as a new top-level window comes.
Check later if there's any other widgets like progress bar.