Getting the row for button pressed
Hi,
I've got a QTableView with five rows and five columns. In the fifth column of each row I have a QToolButton widget which is connected to the click signal and all go to the same slot. My problem is, I need to know which row is selected when the user has clicked on the button.
Code:
connect( button, SIGNAL(clicked()),this,SLOT(SendAMessage()) );
Code:
void CSignal::SendAMessage()
{
// how can I get which row is selected?
}
I cannot do this :
As the button click event is signalled first.
Any ideas?
Thanks,
Steve
Re: Getting the row for button pressed
Re: Getting the row for button pressed
Thanks Jacek, I will go take a look.