[Qt-interest] A new (?) const-correct way to create a Ui object and do setupUi
Nikos Chantziaras
realnc at arcor.de
Tue Feb 8 12:32:16 CET 2011
On 02/08/2011 01:00 PM, Thiago Macieira wrote:
> [...] And how do you delete the reference afterwards?
You are not allowed to delete objects that were not created with "new":
QObject* obj1 = new QObject;
You can delete obj1. However:
QObject obj2;
You cannot delete obj2. For the same reason, you do not delete
references to obj2.
More information about the Qt-interest-old
mailing list