[Qt-interest] QTextEdit not deleted when implemented as list
Sujan Dasmahapatra
sdh at lmwindpower.com
Thu Jun 23 16:17:56 CEST 2011
Dear All
I have list of QTextEdit, I am creating the edit box and then trying to
delete but its not deleting. Can u anyone tell me what I am doing
wrong.
////////////////////////////////////////////////////////////////////////
//////////////////////////////////////
QList<QTextEdit *> list;
int w = 100;
int h= 25;
int incre=0;
for(i=0; i<2; i++)
{
list.append(new QTextEdit(this));
list.at(i)->setGeometry(0,0+incre,w,h);
list.at(i)->show();
incre = incre+h+10;
}
int cnt = list.count();
for(int i=0; i<cnt; i++)
delete list.at(i);
list.clear();
////////////////////////////////////////////////////////////////////////
////////////////////
But even after deleting the edit boxes I can still see them, means
they're not being deleted. Whats wrong , any help would be appreciated.
Kind Regards,
Sujan Dasmahapatra
Project Leader, Aero Group
Aero Group
Tel +91 80 66470248
Mob
sdh at lmwindpower.com <mailto:%25EMAIL%25>
LM Wind Power Blades
lmwindpower.com
Together we capture the wind to power a cleaner world
________________________________
This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose,
or store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110623/b337f723/attachment.html
More information about the Qt-interest-old
mailing list