title: QSqlQuery how to get value of a count?
body: <p>I have a query that is just getting the count of table based on some criteria eg:</p>
  
  <pre><code>QSqlQuery query("SELECT COUNT(*) FROM some_table WHERE some_value = :something");
  query.bindValue(":something", "something");
  </code></pre>
  
  <p>my question is how do i get result of this back, obviously this is where you would use</p>
  
  <pre><code>query.value(int);
  query.value(QString);
  </code></pre>
  
  <p>But the docs say that int index one shouldnt be used because we dont know what the index would be andi cant use the string one because there is no filed to define as the one i want the result for. so assuming i am correct in saying that how is it that i can get the count integer value into a int variable from this query </p>
  
  <p>cheers</p>