Hi, guys. I need you help.

I'm trying to obtain a sha1 hash. I use QCryptographicHash for this.
Qt Code:
  1. QCryptographicHash hash(QCryptographicHash::Sha1);
  2. hash.addData("123", 3);
To copy to clipboard, switch view to plain text mode 

But I get something like this
"$6rJ╟)щъa4тБ(\еEY├"
instead of
"40bd001563085fc35165329ea1ff5c5ecbdbbeef".
What am I doing wrong?

Thanks.