You have:
QString TRACE_Function( QTextEdit *widget, void (QTextEdit::*method)(), QString text_paramater);
Parameter #2 is defend as a pointer to a function which takes no arguments and returns void.
Your call to TRACE_Function is
pRETC_TEST->TRACE_Function( ui->textEdit, &QTextEdit::append("Trace INITIALIZE"), "TRACE initialize ");
Here, argument #2 is the address of whatever the function call to
QTextEdit::append("Trace INITIALIZE")
returns. Probably you just want
pRETC_TEST->TRACE_Function(ui->textEdit,
&QTextEdit::append,
"TRACE initialize ");
But note that you'll still get an error, since
QTextEdit::append
takes an argument, I'm guessing of type
QString
. Which means your function definition is probably incorrect and should be
QString TRACE_Function(QTextEdit *widget,
void (QTextEdit::*method)(Qstring),
QString text_paramater );
You'll have to do some digging to see exactly what the argument type to the function pointer should be: I.E. pointer, reference, const, etc.