Does "model" still exist when you show the table view?
Where does "trackView" come from? Are you sure it is the same QTableView as the one you see?