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&#39;m using mysql-server5.0, Qt4.3 and PyQt4.3 ....&nbsp; Can anybody check it?<br><br>thank&#39;s!<br><br>Martin Alderete<br>
<br>
self.manager = QtSql.QSqlDatabase(&quot;QMYSQL&quot;)<br>
self.manager.setHostName(&quot;sherly&quot;);<br>
self.manager.setDatabaseName(&quot;opencoffee&quot;);<br>
self.manager.setUserName(&quot;opencoffee&quot;);<br>
self.ok = self.manager.open();<br>
string = QtCore.QString( &quot;SELECT * from users&quot;)<br>
query = QtSql.QSqlQuery(string, self.manager)<br>
print &quot;result: %s&quot; % query.value(0).toString()