Re: [PyQt] Problem using signal beforeInsert

2010-01-21 Thread bar tomas
Many thanks. it works now. On Thu, Jan 21, 2010 at 3:09 PM, Phil Thompson wrote: > On Thu, 21 Jan 2010 15:05:56 +, bar tomas wrote: >> Many thanks for your help. I've corrected the code following your >> suggestion, but the test method still does not get called, although >> new records get s

Re: [PyQt] Problem using signal beforeInsert

2010-01-21 Thread Phil Thompson
On Thu, 21 Jan 2010 15:05:56 +, bar tomas wrote: > Many thanks for your help. I've corrected the code following your > suggestion, but the test method still does not get called, although > new records get submitted to the database: > > self.model = QSqlRelationalTableModel(self) > self.connec

Re: [PyQt] Problem using signal beforeInsert

2010-01-21 Thread bar tomas
Many thanks for your help. I've corrected the code following your suggestion, but the test method still does not get called, although new records get submitted to the database: self.model = QSqlRelationalTableModel(self) self.connect(self.model, SIGNAL("beforeInsert(QSqlRecord *)"), self.test) de

Re: [PyQt] Problem using signal beforeInsert

2010-01-21 Thread Phil Thompson
On Thu, 21 Jan 2010 13:38:45 +, bar tomas wrote: > Hi, > > I've created a QDataWidgetMapper that uses a QSqlRelationalTableModel > to edit the records of database table. > I've tried using the signal beforeInsert to do some validation before > the data is submitted to the database but I have

[PyQt] Problem using signal beforeInsert

2010-01-21 Thread bar tomas
Hi, I've created a QDataWidgetMapper that uses a QSqlRelationalTableModel to edit the records of database table. I've tried using the signal beforeInsert to do some validation before the data is submitted to the database but I have a problem intercepting the signal (the slot method test just neve