kaushal_gaurav
20th October 2008, 10:43
Hi,
Say in a dialog i have a menu and i have added some actions to the menu
Qmenu *menu = new QMenu();
QAction *addGroupAction = new QAction("ADD", this);
QAction *renameGroupAction = new QAction("RENAME", this);
menu->addAction(addGroupAction);
menu->addAction(renameGroupAction);
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
Say in a dialog i have a menu and i have added some actions to the menu
Qmenu *menu = new QMenu();
QAction *addGroupAction = new QAction("ADD", this);
QAction *renameGroupAction = new QAction("RENAME", this);
menu->addAction(addGroupAction);
menu->addAction(renameGroupAction);
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