<div>Ok ,</div> <div>I went throught he documentation before and yet again.</div> <div>I can't figure out what the hell is wrong with this code ;-</div> <div><STRONG><EM>import sys<BR>from PyQt4 import QtGui, QtSql</EM></STRONG></div> <div><STRONG><EM></EM></STRONG> </div> <div><STRONG><EM>db = QtSql.QSqlDatabase.addDatabase("QPSQL")<BR>db.setHostName("localhost")<BR>db.setPort(5432)<BR>db.setDatabaseName("test")<BR>db.setUserName("root")<BR>db.setPassword("mypass")<BR>print db.open()</EM></STRONG></div> <div><STRONG><EM></EM></STRONG> </div> <div>Always returns a false , however with psycopg2 , I am able to execute query too. </div> <div>Can someone help me out with understanding whatz wrong with the code fragment above ?</div> <div>thanks</div> <div>nishith</div><p> 
<hr size=1>Never miss a thing. <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>