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
.
Asked
Active
Viewed 602 times
-1
-
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 Answers
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