QTableView得到当前选择的列

    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();

    }
}
原文地址:https://www.cnblogs.com/jesse-deng/p/3521609.html