Hi! I have problems when i try to get values from sql query. I have
record in database but when i do the code below i recived None
objects..., I'm using mysql-server5.0, Qt4.3 and PyQt4.3 .... Can anybody check it?<br><br>thank's!<br><br>Martin Alderete<br>
<br>
self.manager = QtSql.QSqlDatabase("QMYSQL")<br>
self.manager.setHostName("sherly");<br>
self.manager.setDatabaseName("opencoffee");<br>
self.manager.setUserName("opencoffee");<br>
self.ok = self.manager.open();<br>
string = QtCore.QString( "SELECT * from users")<br>
query = QtSql.QSqlQuery(string, self.manager)<br>
print "result: %s" % query.value(0).toString()