title: how to convert QString into int in qt creator
body: <p>I have seen one answer regarding to this same question but when I tried it with my problem it get confused.</p>
  
  <p>here is my string,</p>
  
  <pre><code>bit_rate = "bitrate: 2334 kb/s"
  </code></pre>
  
  <p>I need to get the <code>2334</code> from this string and assign it into a integer variable..
  how is this possible in qt creator. I tried <code>toInt()</code>, but it always gives <code>0</code> as the answer.</p>