Why not reimplement setModelData to only affect the model if there is anything sane entered in the line edit?
Forum Rules
Bookmarks