try to write your own item delegate, which will recognize numbers and set in a model using Qt:: DisplayRole needed strings.