Hello guys and girls,
I’ve been playing around with onmanualsubmit, onfieldchange and onrowchange when trying to add an empty row on the bottom of a QTableview with a model getting data from a sqlite database.
I think I should use onfieldchange to accomplish this.But I’m stuck.
This is what I want (see image)
When a tableview is not active, I always want an empty row at the bottom. Ok that’s easy : just use insertrow and you have it.
When you go to another cell in the same row or another row, the new row should get submitted to the database and a new empty row is presented at the bottom.
1) Is onfieldchange the good choice?
2) Which eventfilter should I use to tell the tableview it should submit the data and create a new empty row at the bottom. Or is there a better way to accomplish this? I looked into signals, but didn’t come up with a good solution.
All ideas and suggestions are welcome.
Everallemptyrow.jpg
Bookmarks