No, it would take more, 80kB is just an estimation.
QString is much heavier than int, you can't consider raw data as a good estimation in this case, especially that QString keeps its data as unicode (which immediately doubles memory usage). There is also a matter of using p-impl.and for the QMap<qint32,QString> 10,000 items, it took about 960 KB however, it should take about 468KB = ( 10,000 * 8 + 40*10,000 ) .
Bookmarks