finally I figured what is the problem .

I should have defined it as a static function.
in .h :
Qt Code:
  1. static bool compareWordItem ( const WordItem &w1 , const WordItem &w2 );
To copy to clipboard, switch view to plain text mode 

thanks guys