[PyKDE] Problem connecting to QDataBrowser.currentChanged

Hans-Peter Jansen hpj at urpla.net
Tue Aug 6 16:21:01 BST 2002


These lines where missing in my first mail:

BTW: if you're interested in PyQt database programming, have a look into 
runform3.py. When uncommenting the possibly offending
lines:
        self.connect(self.ImageDataBrowser, 
		     SIGNAL("currentChanged(const QSqlRecord *)"),
                     self.currentChanged)

in runform3.py mainWindow.polish(), it's a nice sql based image browser 
with some problems mostly solved, when facing sql TEXT and BLOB fields.
I have still to solve sql mode dependant handling under certain 
conditions (after bulk import). 

Setup with:

cp runform3.py testform3.ui test.sql $PYQTDIR/examples3/SQL
cd $PYQTDIR/examples3/SQL
mysql < test.sql
pyuic testform3.ui -o testform3.py
python runform3.py

Have fun,
  Hans-Peter




More information about the PyQt mailing list