I must be doing something very wrong !!!

I am able to pass an integer from one class to another.

From class Client, I am passing this integer to class MessageIn:
Qt Code:
  1. messageIn->parseMessage(8);
To copy to clipboard, switch view to plain text mode 


The MessageIn class receives this call:
Qt Code:
  1. void MessageIn::parseMessage(int dataIn)
  2. {
  3. //something here
  4. }
To copy to clipboard, switch view to plain text mode 


I want to do the exact same thing, but I want to pass a QString from Client to MessageIn.

How does the signature and expected variables for the functions should look like ?