QCryptographicHash::hash() is static "helper" function, and what You are looking for is QCryptographicHash::addData().

This was answered here i.e. http://www.qtcentre.org/threads/3567...an-entire-file