I have ten buttons connected to one method:

connect(m_myPushButton1, SIGNAL(clicked()), this, SLOT(MyMethod()));
connect(m_myPushButton2, SIGNAL(clicked()), this, SLOT(MyMethod()));
...
connect(m_myPushButton10, SIGNAL(clicked()), this, SLOT(MyMethod()));


Is there a way I can find out what button did the click in this method?

void TestClass::MyMethod()
{
//if button1 made the click, place a 1 in the spinner box
//if button2 make the click, place a 2 in the spinner box
// etc.
m_SpinnerBox->setValue(...find the button that made the click...);
}