QTableView or QSqlTableModel : signal for after insert/delete/update? - SOLVED
-
I'm sure I'm missing something but I can only find signals for before insert/update/delete,
is there anyway to catch the after event/signal?PS: need the signal to update some combo boxes outside the table.
Thanks,
G -
You should check the documentation of QAbstractItemModel. It has a whole list of signals that I think would be of use to you.
-
Ah.. ofcourse.. why you don't see the signal's you want is because.. you need to take a look at the base class (QAbstractItemModel) where we have a lot more signals (row/column added/moved/removed/ etc...) This is always the case. In most classes, a lot of important functions/signals would be in the abstract base class.
See "documentation":http://doc.qt.nokia.com/latest/qabstractitemmodel.html#signals
-
Thx,
ok, there are signals for remove and insert but no signal for update,any idea?
-
There is: QAbstractItemModel::dataChanged
-
alright'y then, thanks :-)
funny, there is no way to change this to 'Solved'... so:
SOLVED!
-
[quote author="Mr.G" date="1308043161"]alright'y then, thanks :-)
funny, there is no way to change this to 'Solved'... so:
SOLVED![/quote]
Actually: there is :-)
You can edit your first post, and simply modify the title (adding a [Solved] to it will do)