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 never executes).
Here is a snippet of the relevant code:

self.model = QSqlRelationalTableModel(self)

self.connect(self.model, SIGNAL("beforeInsert(record)"), self.test)


def test(self, record):
    print "test"

Is there something wrong in the way I've declared the connection?
Many thanks
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to