Am Sonntag, 23. Dezember 2007 06:50:44 schrieb nishith datta:
hi all,
I wish to show the output of my sql query in a table.
I am unable to do that.
Can someone point out some resource / example or documentation to help me
out. thanks in advance
http://doc.trolltech.com/4.0/sql.html
Ok ,
I went throught he documentation before and yet again.
I can't figure out what the hell is wrong with this code ;-
import sys
from PyQt4 import QtGui, QtSql
db = QtSql.QSqlDatabase.addDatabase(QPSQL)
db.setHostName(localhost)
db.setPort(5432)
db.setDatabaseName(test)
On 23.12.07 11:05:18, nishith datta wrote:
Ok ,
I went throught he documentation before and yet again.
I can't figure out what the hell is wrong with this code ;-
import sys
from PyQt4 import QtGui, QtSql
db = QtSql.QSqlDatabase.addDatabase(QPSQL)
db.setHostName(localhost)
hi all,
I wish to show the output of my sql query in a table.
I am unable to do that.
Can someone point out some resource / example or documentation to help me out.
thanks in advance
nishith
-
Be a better friend, newshound, and know-it-all with