Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to pass an object like LineEdit to a function
-
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"); }