connect(tableOfClients, SIGNAL(activated()), this, SLOT(test()));
C++ (Qt)connect( tableOfClients->selectionModel(), SIGNAL( currentChanged ( const QModelIndex &, const QModelIndex & ) ), this, SLOT( test() ) );