Hi,

Say in a dialog i have a menu and i have added some actions to the menu
Qt Code:
  1. Qmenu *menu = new QMenu();
  2. QAction *addGroupAction = new QAction("ADD", this);
  3. QAction *renameGroupAction = new QAction("RENAME", this);
  4. menu->addAction(addGroupAction);
  5. menu->addAction(renameGroupAction);
To copy to clipboard, switch view to plain text mode 

No the question is
Whether the actions get deleted automatically when the menu is deleted.
and whether the menu is destroyed automatically when dialog is destoyed..


I mean have QT provided any such automatic garbage collection. or i have to do it explicitly by calling delete function.

Please help...

GK