title: Very basic SQL query in PyQt questions
body: <p>All example I've found are using PyQt to put data in various views and tables.</p>
  
  <p>But I'm trying to do some very basic query to fetch data and send them to some other non-qt functions. Any advice how I can do this?</p>
  
  <p>For example, if I query this from the table 'user' with 3 records. How do I access each record and return them as ordinary python string and not QtString?</p>
  
  <pre><code>db = QtSql.QSqlDatabase.addDatabase("QSQLITE")
  db.setDatabaseName(blah)
  
  query = QtSql.QSqlQuery(db)
  query.exec_("SELECT id, password FROM user")
  </code></pre>