[Qt-interest] QFormLayout memory leak??

Tony Thompson Tony.Thompson at stone-ware.com
Mon Nov 16 20:40:34 CET 2009


I delete them as the example shows but they are not removed from the screen.

Thiago Macieira wrote:
> Em Segunda-feira 16 Novembro 2009, às 20:10:00, você escreveu:
>   
>> <font size="-1"><font face="Helvetica, Arial, sans-serif">I have a
>> QFormLayout that I am programmatically adding rows that contain a
>> QLabel and QLineEdit.&nbsp; I am also programmatically removing those
>> elements using QFormLayout.takeAt().&nbsp; When I use takeAt(), it does not
>> remove the elements from the screen but it appears that the layout does
>> not know about them anymore because QFormLayout.count() returns 0.&nbsp;
>> Adding new rows to the layout overlays the old rows so the screen
>> begins to look like a mess.&nbsp; Is this a bug in QFormLayout or is there
>> something I need to do to make the UI update?<br>
>>
>>     
>
> The documentation for QLayout::takeAt says that the items are not deleted. The 
> example it gives shows deleting of the item.
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
 
This message (and any associated files) is intended only for the 
use of the individual or entity to which it is addressed and may 
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient 
you are hereby notified that any dissemination, copying or 
distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, 
please notify us immediately by replying to the message and deleting 
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.




More information about the Qt-interest-old mailing list