Here is what I'm doing to calculate an Image checksum :

Qt Code:
  1. quint16 ZePicturePool::generateChecksum(const QPixmap & pixmap)
  2. {
  3. QImage image = pixmap.toImage();
  4. quint16 checksum = qChecksum((char *) (image.bits()), image.numBytes());
  5.  
  6. return checksum;
  7. }
To copy to clipboard, switch view to plain text mode 

Is it the good approach ?