Make sure you are using Q_OBJECT in your header file and then the correct syntax for slots is the signature of the slot:
Qt Code:
  1. minvite->addAction(strInviteChannel, this, SLOT(invite(QString)));
To copy to clipboard, switch view to plain text mode 

But then I guess you cant achieve what you want, so have a look at QSignalMapper or use sender() in your slot.