I can pass a QWidget*
pointer to a function, no issue. My question is, how do I pass the actual QWidget
function / option?
For example – this is how I clear a QWidget
in C++ code:
ui->textEdit->clear();
I can pass the ui->textEdit
object, but I do not know how to pass such object parameters to be able to execute ui->textEdit->clear();
in pseudocode to execute the passed object and its parameter.
This is not a “try this and try that” question. I need some theory on how to pass an object and its parameters.