You don't need sendText(), you can just connect to the QLIneEdit's textChanged(QString) signal.
connect(ui
->lineEdit,
SIGNAL(textChanged
(QString)), dialog,
SLOT(setText
(QString)));
connect(ui->lineEdit, SIGNAL(textChanged(QString)), dialog, SLOT(setText(QString)));
To copy to clipboard, switch view to plain text mode
So the only thing you really need is a slot in your dialog class
class MyDialog : public QDIalog
{
Q_OBJECT
//...
public slots:
void setText
(const QString &text
);
// this consumes the text in whatever way you deem right
class MyDialog : public QDIalog
{
Q_OBJECT
//...
public slots:
void setText(const QString &text); // this consumes the text in whatever way you deem right
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks