[Qt-interest] QFormLayout memory leak??
Thiago Macieira
thiago at kde.org
Mon Nov 16 20:22:58 CET 2009
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. I am also programmatically removing those
> elements using QFormLayout.takeAt(). 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.
> Adding new rows to the layout overlays the old rows so the screen
> begins to look like a mess. 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.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091116/4adab5c0/attachment.bin
More information about the Qt-interest-old
mailing list