[Qt-interest] clear QGridLayout

Malyushytsky, Alex alex at wai.com
Tue Jun 30 23:17:46 CEST 2009


I am not following why you think this might be a problem.
Just remember all children of your QObject will be deleted,
so if you keep pointers to for example widgets added to layout , they become invalid.

Regards,
   Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Frank Lutz
Sent: Tuesday, June 30, 2009 11:27 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] clear QGridLayout

With other words,

i can do make
QGridLayout *grid = new QGridLayout;
...
delete grid;
without problems at Qt?

sorry for my stupid question!
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list