Qt Code:
  1. QString text;
  2. text=lineEdit1->text();
  3. label->setText(text);
To copy to clipboard, switch view to plain text mode