I've created a qtabwidget with 4 tabs inside it, i need to know which current tab is
currently selected by the user, the way i thought to do that was to have a call to the
connect, something like this:

connect( tab1pressed, SIGNAL(clicked()), this, SLOT( function_something1() ));
connect( tab2pressed, SIGNAL(clicked()), this, SLOT( function_something2() ));
.....

Problem is i can't see what is the correct function to call to do the tab1pressed part,
tabWidget->currentWidget() something? or there's a total different way to do this?
Thanks in advance.