title: QUrl parsing in QT 5
body: <p>I have a <code>QUrl</code> as this: </p>
  
  <p><code>https://www.example.com/index.html#token=SomeToken&amp;user=guest</code></p>
  
  <p>and I want to obtain the value of the token i.e. <code>SomeToken</code>. I know about method <code>QUrl::queryItemValue</code>,so this code must work:</p>
  
  <pre><code>void MainWindow::get_token(QUrl url)
  {
      url = url.toString().replace("?","#");
      QString token = url.queryItemValue("token");
  }
  </code></pre>
  
  <p>but in <code>Qt5</code> i can't use this method,how can I parse url?</p>