PDA

View Full Version : `lineEdit' was not declared in this scope?



i4ba1
18th November 2009, 13:59
Hai all, i have a lineEdit object in qt application and give it name lineEdit. i want to access th eobject name lineEdit in dialog.cpp but i get an error. the error is: `lineEdit' was not declared in this scope. how to acces the object name lineEdit in Line Edit Object? please help me!!!!.

Lykurg
18th November 2009, 14:09
please help me!!!!.

Show us some code!!!! Where have you create the line edit and where do you want to access it. Did you use "ui->"?

i4ba1
18th November 2009, 14:36
Tahnk you for your help, i add code ui->lineEdit name and it solve my problem.