title: AttributeError: 'QString' object has no attribute 'find'
body: <p>Indeed this question is asked many times, but could not find anything to solve my problem. I have many modules in my python project and it works fine, however on creating executable of that project i get error:</p>
  
  <blockquote>
    <p>AttributeError: 'QString' object has no attribute 'find' </p>
  </blockquote>
  
  <p>Unfortunately i could not make a reproducible example, as the code is so large. But the error comes from the line, which is to accept user input </p>
  
  <pre><code>input = self.builselcom.currentText()
  </code></pre>
  
  <p>which holds something like <code>hg19.bt2</code></p>
  
  <p>I have the index of the above line </p>
  
  <pre><code>tofind = ".bt2"
  </code></pre>
  
  <p>and try to find by </p>
  
  <pre><code>input.find(tofind)
  </code></pre>
  
  <p><strong>Note:</strong> Project works fine, but error with executable. </p>