Hello!

I've got function:

Qt Code:
  1. int myFunc(QString *param)
  2. {
  3. [...]
  4. }
To copy to clipboard, switch view to plain text mode 

and I want to connect that function to two different buttons, which will pass two different QString arguments. How can I do that?

Qt Code:
  1. connect(button1, SIGNAL(clicked()), this, ?myFunc()?);
  2. connect(button2, SIGNAL(clicked()), this, ?myFunc()?);
To copy to clipboard, switch view to plain text mode 

Lets say that button1 should pass to function "abc" and button2 "def".

thanks in advance
best regards
Tomasz