title: Getting Sha1 hash from QString
body: <p>In my Qt5.6.1 program, I have to get a Sha-1 hash from QString, but I get incorrect result. I'm trying to use QCryptographicHash library.</p>
  
  <pre><code>QString str = "ABCDEFGH";    
  QString hash = QString::fromStdString(QCryptographicHash::hash(str.toStdString().c_str(), QCryptographicHash::Sha1).toStdString());
  // hash == "?^??[?\u0000??v??\u0015??.b??v"
  </code></pre>
  
  <p>What should I change in that case?</p>