how to pass an object like LineEdit to a function
Solved
General and Desktop
-
I need a function that receive an object like LineEdit as argument and make an action on it.
something like this:void myFunc(lineEditObject) { LineEditObject->settext("some text"); }
but dont know how to declare LineEdit object as an argument for function
-
C++ basics are needed before you start Qt.
void myFunc(QLineEdit *lineEditObject) { LineEditObject->settext("some text"); }