You can forward the signal from the Dialog's line edit
{
Q_OBJECT
public:
explicit Dialog
(QWidget *parent
= 0);
signals:
void textChanged
(const QString &text
);
};
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = 0);
signals:
void textChanged(const QString &text);
};
To copy to clipboard, switch view to plain text mode
, ui(....)
{
connect(ui
->lineEdit,
SIGNAL(textChanged
(QString)),
this,
SIGNAL(textChanged
(QString)));
}
Dialog::Dialog(QWidget *parent)
: QDialog(parent)
, ui(....)
{
connect(ui->lineEdit, SIGNAL(textChanged(QString)), this, SIGNAL(textChanged(QString)));
}
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,
_
Bookmarks