I haven't tried it out, but reading the doc, I think you need to do:

Qt Code:
  1. QString l = path.join(", ");
  2. ui->lineEdit_6->setText(l);
To copy to clipboard, switch view to plain text mode 

See if that works.
bepaald