[PyQt] qtable data source

nishith datta nkdiitd2002 at yahoo.com
Sun Dec 23 19:05:18 GMT 2007


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071223/cf09ade6/attachment.html


More information about the PyQt mailing list