-1

I have some code in on_pushButton_clicked() that creates another QLineEdit, and I would like to ask you how can I access the on_lineEdit_textChanged() event of that new QLineEdit.

demonplus
  • 5,613
  • 12
  • 49
  • 68
tomsk
  • 967
  • 2
  • 13
  • 29
  • Can you elaborate and possibly show some code? I could provide some information and maybe answer the question with some more details. – James Adkison Jan 05 '16 at 16:01

1 Answers1

3

You should use connect method like this:

QLineEdit* le= new QLineEdit(this);
....add to layout.....
connect(le, SIGNAL(textChanged(const QString &)), this, SLOT(on_lineEdit_textChanged(const QString &)));
Evgeny
  • 3,910
  • 2
  • 20
  • 37