[Qt-interest] QTextEdit not deleted when implemented as list
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Thu Jun 23 18:32:04 CEST 2011
Thanks for your suggestion ross this is my other email id. I am done with
this . Thanks sujan
On Thu, Jun 23, 2011 at 7:53 AM, <ross at earz.ca> wrote:
> I need to start rereading my code three times instead of twice...
>
> > I would suggest that you call hide() on the text edits and then call
> > deleteLater() if you want to clean up the memory early. Perhaps your
> loop
> > should look more like this:
> >
> >
> > for(int i=0; i<cnt; i++)
> > {
> > QTextEdit p = list.at(i);
> > p->hide();
> > p->deleteLater();
> > }
> >
>
> Of course that should read:
>
> for(int i=0; i<cnt; i++)
> {
> QTextEdit* p = list.at(i);
> p->hide();
> p->deleteLater();
> }
>
> Time for another coffee.
>
> R.
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
--
Thanks & Regards
Sujan Dasmahapatra
B.E. (Aeronautics)
Bangalore, India
Ph:91-9900839788
mail id : sujan.dasmahapatra at gmail.com
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
icq # 556023244
skype:sujan.dasmahapatra at skyepe.com
msn: sujan.dasmahapatra at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110623/995f2ec2/attachment.html
More information about the Qt-interest-old
mailing list