Hi,
For certain situation I have to manually select cells/column/row by code in my QTableWidget.
Now the problem is that I cannot find any method like QTableWidget::clearSelection() which will deselect all selected cells. Currently the following happens:
1. mySelectionFunction();//selects a row/column
2. again call mySelectionFunction() for some other row/column; //previous row/column as well as current row/column are selected
What I want is :
1. mySelectionFunction();//selects a row/column
2. myTable->clearSelection(); //clears all selected cells in QTableWidget
3. again call mySelectionFunction() for some other row/column; //only current row/column is selected
Any help in how to do step no. 2?
Thanks!
↧