marc2050
1st June 2011, 21:29
Hi.
When I do things like
QSpinBox *myspinbox1 = new QSpinBox;
and a host of other allocation of "new" pointer space in a Qdialog widget to present some option box choice for users, do I need to also do a "delete" to free up the memory space before I do a "close" for my dialog widget? Or will they be automatically freed when I close the widget?
Thanks!
When I do things like
QSpinBox *myspinbox1 = new QSpinBox;
and a host of other allocation of "new" pointer space in a Qdialog widget to present some option box choice for users, do I need to also do a "delete" to free up the memory space before I do a "close" for my dialog widget? Or will they be automatically freed when I close the widget?
Thanks!