connect(this,SIGNAL(clicked(QModelIndex)),this,SLOT(sltItemSelected(QModelIndex))); TableView::sltItemSelected() { mcurItem = mfileModel->itemFromIndex(index); int row = mcurItem->row(); int column = mcurItem->column(); if( column != 0 ) { mcurFileName = mfileModel->item(index.row(),0)->text(); } }