I see, you have problems with basic c++, variable count has to be declared before you can use it so you have to add this variable to your class definition and initialize it in constructor. Then method disp() should work.Well you have got exactly what I am trying to achieve. But I am still confused as to if I dont pass any value to disp() how is it gonna setText in the LineEdit?? Sorry still confused.
And also this:
void click_me::disp(int)
In declaration there was no int argument, and even if it was you always have to give name to passed value in definition of method.
Bookmarks