[Qt-interest] memory problem

Srdjan Todorovic todorovic.s at googlemail.com
Tue Mar 24 12:11:45 CET 2009


Hi

2009/3/24 Sujan Dasmahapatra <sdh at lmglasfiber.com>:
> item[count] = new QTableWidgetItem(filename,0);
> Whats wrong in this ?

Don't you want to append?

> fileNameUpdate() is called in some other function where I am getting the QString filename and a geometry,i.e Geometry * geometry and setting that geometry to geometry[count] = geometry;
>
> This part is correct could u check annone what I am doing in the destuctor is correct or not ???

Yes, correct, *if* you want to delete only the last item and the last
geoMetry. Assuming that that's what you want.

But I get the sense from this email thread and other of your threads,
that you don't really know what you want to do or achieve. Try to
think about your requirements and then write your code to achieve
this.

Good luck
Srdjan



More information about the Qt-interest-old mailing list