title: How to Compare two Qstrings?
body: <p>I have to compare two Qstrings in qt,</p>
  
  <p>say,</p>
  
  <pre><code>Qstring str1="1005",str2="1006";
  </code></pre>
  
  <p>I have tried using ,</p>
  
  <pre><code>if(str1==str2){
     return true;
  }
  </code></pre>
  
  <p>&amp;</p>
  
  <pre><code>if(str1.compare(str2)==0)
  {
      return true;
  }
  </code></pre>
  
  <p>still both methods goes inside if condition &amp;  returns true.</p>