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
QString dialog
::getLineEditText() const {
return ui->lineEdit->text();
}
QString dialog::getLineEditText() const
{
return ui->lineEdit->text();
}
To copy to clipboard, switch view to plain text mode
Then call it like after execute the dialog
ui->lineEdit->setText(x.getLineEditText());
if (x.exec() == QDialog::Accepted)
ui->lineEdit->setText(x.getLineEditText());
To copy to clipboard, switch view to plain text mode
THANK YOU FOR YOUR INTEREST.
Bookmarks