You can start deleting from the last row. In that case the indexes will stay valid.
Or you can probably just delete the items returned by QTableWidget::selectedItems() using qDeleteAll().
You can start deleting from the last row. In that case the indexes will stay valid.
Or you can probably just delete the items returned by QTableWidget::selectedItems() using qDeleteAll().
ricardo (13th May 2009)
Used sorted version and evidently worked.
I don't know why I didn't have that idea.
Thanks a lot for your help.
Bookmarks