Hi! I really need help.

My program is a SQL query area codes

Qt Code:
  1. select city-code from country
To copy to clipboard, switch view to plain text mode 

The results are displayed in QTableView.
For example, the result code will be printed 1132.
1.What I want: is it possible to to do the encoding of these codes? At the some point it should be specified 1132 = 'Toronto', and QTableView display text value corresponding to this code?

That is, in another related file these codes do variable and QTableView not displayed codes and their meanings. How to do that? I really have no idea...

2.How to make a text value assignment of numbers? I apologize for not knowing such a moment, but never met with such a task) And Google is not particularly give the correct answers.
110 int = 'Toronto'; ?

3.How do these variables would be concerned only this widget?