[PyQt] data aware widgets not there

2007-12-18 Thread nishith datta
hi all, I am new to python and pyqt. I have python2.5 and pyqt from riverbankcomputing. When I launch the QT designer, I donot see a way to set up database connections and therefore cannot create data aware forms. I would love to know from anyone about how to do the following :- I wish to c

[PyQt] qtable data source

2007-12-22 Thread 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 nishith - Be a better friend, newshound, and know-it-all with Ya

Re: [PyQt] qtable data source

2007-12-23 Thread nishith datta
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.setUs

[PyQt] unable to load the postgre sql drivers in pyqt

2007-12-30 Thread nishith datta
hi all, I have installed python 2.5 , QT 4.3.3 opensource with mingw, and pyqt 4.3.1-1 on a winXP machine. I am trying to establish a connection to the postgres SQL 8.2 database on my machine using the pyqt . The code is as under :- from PyQt4.QtGui import * from PyQt4.QtCore import * f

Re: [PyQt] unable to load the postgre sql drivers in pyqt

2007-12-30 Thread nishith datta
Thanks phil for such a prompt response, Can I compile pyqt using mingw ? nishith - Never miss a thing. Make Yahoo your homepage.___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcom

Re: [PyQt] unable to load the postgre sql drivers in pyqt

2007-12-30 Thread nishith datta
hi all, sorry Phil, I am unable to compile pyqt on winxp. I downloaded the source file and tried the following:- E:\Python25>python E:\downloads\PyQt-win-gpl-4.3.3\configure.py Error: This version of PyQt requires SIP v4.7.2 or later I find a SIP dir in the downloaded source archive al

Re: [PyQt] unable to load the postgre sql drivers in pyqt

2007-12-30 Thread nishith datta
hi phil, First of all thanks for your prompt responses. Well I have in the meantime downloaded the SIP 4.7 snapshot from the riverbankcomputing site and I went ahead to configure it as follows :- E:\downloads\pythonAndQt\sip-4.7-snapshot-20071228>e:\Python25\python configure. py -p win32-g+

Re: [PyQt] unable to load the postgre sql drivers in pyqt

2007-12-30 Thread nishith datta
hi all, ignore the last post - I figured it out that gcc is complaining there is no python25 dir i.e I have installed python25 in E:\Python25 I resolved the problem with the follwing command line :- E:\downloads\pythonAndQt\sip-4.7-snapshot-20071228>mingw32-make -C e:\ It did p

Re: [PyQt] unable to load the postgre sql drivers in pyqt

2007-12-31 Thread nishith datta
Hi phil, Although I had mingw 5.1.3 installed on my machine, I tried out your suggestion and this time I downloaded the mingw via the qt installer. But, there is no progress, I am still getting the same error. Actually, if you can guide me about how to compile pyqt with postgres drivers t

Re: [PyQt] unable to load the postgre sql drivers in pyqt

2008-01-01 Thread nishith datta
hi all, I am desperately looking for a pyqt version with postgres support. I have tried to compile on the windows XP platform the same but didn't succeed. Can someone help me out. thanks in advance and .a very happy new year nishith - Be a

[PyQt] unable to compile sip snapshot using mingw

2008-01-02 Thread nishith datta
hi all, I am unable to compile sip using mingw on winXP platform. I keep getting this error and the make stops with an error :- qtlib.o(.text+0x14da):qtlib.c: undefined reference to `_imp___Py_TrueStruct' qtlib.o(.text+0x1765):qtlib.c: undefined reference to `_imp___Py_TrueStruct' qtlib.o(.te

[PyQt] How to communicate with PostgreSQL?

2008-01-27 Thread nishith datta
hi all, I also have a similar problem, but only with Postgre SQL. The db.open() call returns a false and the error says data base driver is not loaded. Can someone advise me how to build postgre support into pyqt. I am using pyqt 4.3 on winXP. I also have qt4.3.3 which is open source and compiled