Zlatomir .Sorry for the delay.

Thank you for your replay.
I think that your suggestion is more professional ,but I have found another simple solution by make function in class dialog.This functoin have to return the content of lineEdit.
e.g
Qt Code:
  1. QString dialog::getLineEditText() const
  2. {
  3. return ui->lineEdit->text();
  4. }
To copy to clipboard, switch view to plain text mode 

Then call it like after execute the dialog

Qt Code:
  1. if (x.exec() == QDialog::Accepted)
  2. ui->lineEdit->setText(x.getLineEditText());
To copy to clipboard, switch view to plain text mode 


THANK YOU FOR YOUR INTEREST.