how to pass an object like LineEdit to a function
-
wrote on 7 Jan 2019, 10:19 last edited by
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"); }
1/2