Please embed your code between [CODE ] [/ CODE] tags

As I see, your syntax is wrong.
You have to invoke the constructor of QString as
Qt Code:
  1. QString("%1%2").arg(x_cord).arg(y_cord)
To copy to clipboard, switch view to plain text mode 
And you can't setText() to QHash item.