You can forward the signal from the Dialog's line edit
Qt Code:
  1. class Dialog : public QDialog
  2. {
  3. Q_OBJECT
  4. public:
  5. explicit Dialog(QWidget *parent = 0);
  6.  
  7. signals:
  8. void textChanged(const QString &text);
  9. };
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. Dialog::Dialog(QWidget *parent)
  2. : QDialog(parent)
  3. , ui(....)
  4. {
  5. connect(ui->lineEdit, SIGNAL(textChanged(QString)), this, SIGNAL(textChanged(QString)));
  6. }
To copy to clipboard, switch view to plain text mode 
And then connect that signal in your main window to whatever slot you want.

Cheers,
_