PDA

View Full Version : Adding a blank row to table on successful editing of the last cell of the last row



nageshvk
28th October 2010, 07:14
Hi

I have used QTableView and created a custom model by inheriting QAbstractTableModel.
Now my requirement is when user edits the last cell of the last row...a new blank row must be added to the table.

I am very new to the QT programming...It would be really helpful if you can give me steps in detail like what signal and slot i need to use, adding row and updating the model and ui etc etc

Thanks in advance
Naag

aamer4yu
28th October 2010, 08:33
You will need to add the row / item to the model , and then emit a signal from the model that it has changed.

nageshvk
28th October 2010, 09:26
could you please gimme steps to do that.

Thanks in advance

Regards
Nagesh