Quote Originally Posted by shad
'const QString&' should help.
my original posting was incorrect
code looks like this now.
Qt Code:
  1. // messagepipe.h
  2. friend void operator<<(MessagePipe *pipe, const QString& string);
  3.  
  4. // messagepipe.cpp
  5. void operator<<(MessagePipe *pipe, const QString& string)
  6. {
  7. pipe->message(string);
  8. }
To copy to clipboard, switch view to plain text mode 

the error is still exactly the same.
I even recompiled the project, but that didn't help either.