[Qt-interest] QQueue / QList memory allocation behaviour

Sean Harmer sean.harmer at maps-technology.com
Thu May 26 17:57:04 CEST 2011


On Thursday 26 May 2011 15:41:33 Schimkowitsch Robert wrote:
> Thanks for your explanation, and also for the pointer to the proposed
> QCircularBuffer class.
> 
> One more  question regarding QList behaviour:
> If I "reserve" a QList with a specific size, will it still free memory
> when shrinking too much?

No. Only if you later reserve() a smaller amount (I think).

Sean



More information about the Qt-interest-old mailing list