if I ve an QPixmap Object holding a image file.Does sizeof() work with this object to determine the number of bytes taken by that picture when loaded in memory?
Thank you in advance.
Printable View
if I ve an QPixmap Object holding a image file.Does sizeof() work with this object to determine the number of bytes taken by that picture when loaded in memory?
Thank you in advance.
No. sizeof() returns size of the object, not its data.
If you want to know the size of an image in bytes you load into a QImage and use its byteCount() method.
Cheers,
_
However the size depends on the image format used and in most cases will be different than what size QPixmap occupies.