sosanjay
22nd October 2009, 13:28
I am using Qt TableWidgets and I am trying to fetch the current row and column whatever is selected by user.
I am using cellClicked SIGNAL of QTableWidget
connect(ui->tableWidget, SIGNAL(cellClicked(int,int)), this, SLOT(removeSR(int r,int c)));
Through this function removeSR(int r,int c) I am trying to fetch the current row and column but it does not display the value of current row and column.
Please send me the snippets of the code or any another way if possible.
I am using cellClicked SIGNAL of QTableWidget
connect(ui->tableWidget, SIGNAL(cellClicked(int,int)), this, SLOT(removeSR(int r,int c)));
Through this function removeSR(int r,int c) I am trying to fetch the current row and column but it does not display the value of current row and column.
Please send me the snippets of the code or any another way if possible.