What about QPixmap::cacheKey() and QImage::cacheKey()?