How about calling QAbstractItemModel::reset after you have set the check states