Hi all, I'm observing a leakage in the following scenario:
myContainer = new ContainerWidget(); myGridA = new GridLayout(); myGridA->addWidget(new Widget1(), 0, 0); myContainer->setLayout(myGridA); at this point the instance of Widget1 has the myContainer has parent, replacing the widget: myGridA->addWidget(new Widget2(), 0, 0); at this point I know that Widget1 instance is not supposed to be deleted, but looking at Widget1 instance now has no parent then with: delete myContainer; only the Widget2 instance is deleted. Is this the normal behave ? Regards Gaetano Mendola -- cpp-today.blogspot.com ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
