c++ - Freeing Memory for QPushButtons with QMessageBox -


i've instantiated qmessagebox , added couple of buttons so:

qmessagebox message; cancelbutton = message.addbutton(tr("cancel"), qmessagebox::rejectrole); okbutton = message.addbutton(tr("ok"), qmessagebox::actionrole); 

is necessary call destructors each pushbutton before exiting, or qmessagebox destructor take care of everything?

no.

when parent objects deleted delete children. buttons deleted when 'message' is.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -