Hello!
I've got function:
{
[...]
}
int myFunc(QString *param)
{
[...]
}
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?
connect(button1, SIGNAL(clicked()), this, ?myFunc()?);
connect(button2, SIGNAL(clicked()), this, ?myFunc()?);
connect(button1, SIGNAL(clicked()), this, ?myFunc()?);
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
Bookmarks