C++ (Qt)connect(ui->pFileListView->selectionModel(), SIGNAL( selectionChanged( const QItemSelection& , const QItemSelection& ) ), this, SLOT( changeslot() ) );