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")
db.setUserName("root")
db.setPassword("mypass")
print db.open()
Always returns a false , however with psycopg2 , I am able to execute query
too.
Can someone help me out with understanding whatz wrong with the code fragment
above ?
thanks
nishith
---------------------------------
Never miss a thing. Make Yahoo your homepage.
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt