[PyQt] Problem using signal beforeInsert
bartomas at gmail.com
Thu Jan 21 15:13:51 GMT 2010
Many thanks. it works now.
On Thu, Jan 21, 2010 at 3:09 PM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> On Thu, 21 Jan 2010 15:05:56 +0000, bar tomas <bartomas at gmail.com> 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.connect(self.model, SIGNAL("beforeInsert(QSqlRecord *)"), self.test)
>> def test(self, record):
>> print "test"
>> I was wondering, it is the QSqlRelationalTableModel object that emits
>> the beforeInsert signal, or have I got that wrong?
> The type of the argument is a reference, not a pointer.
More information about the PyQt