How much memory
-
A pixmap is not compressed in memory (uncompressing them for each time they need to be drawn would be way too slow), so yes, it takes to full space to store everything you need, and possibly more for padding.
Lesson to take home: don't try to allocate ridiculously large images (neither in a QPixmap, nor in a QImage, for that matter).
-
Thanks Gerolf and Andre.
One more questions about the QPixmap memoery.QPixmap mm(800, 600); // ~ 1.83M
I then resize it using the Qt 4 recommendation method.
mm = QPixmap(0,0);How about the old 1.83M memory. Does Qt recycle it for me or I need to do something
to avoid memory leaks.Thanks
-Todd