Why does this NOT working?

I want to change the text in the label to X and Y axis values. I have deleted all text in the label first.

Qt Code:
  1. label_2->setText(QCursor::pos());
To copy to clipboard, switch view to plain text mode 

My label has the name label_2