QAction::~QAction() removes itself from all widgets so it's technically not necessary.