Re: QTable Selection Issue
What selection mode do you use? You should use QTable::MultiRow selection and don't use "shift" for row selection as this selects ranges.
An alternative is to manually unselect all rows that are hidden after a successfull selection - just connect to the selectionChanged() signal and iterate over items.
Re: QTable Selection Issue
I do use QTable::MultiRow for the selection and I need to be able to allow the user to click-and-drag a selection by clicking on one row, and dragging say 5 rows down so all the rows from the click and release are selected. As you can see from my post above, I do connect to the selectionChanged( ) signal and tell it to unselect the row. But when I choose to re-show those rows they now come up selected and I want them to stay unselected. Is there any way I can I tell it to stay un-selected? So I am doing all the things you suggest. Do you have any other ideas? Thanks!
Re: QTable Selection Issue
What if you store the current selection on selectionChanged() somewhere and when you show the rows which were hidden, compare them with the stored selection and make sure only those items are selected which have been previously stored?
1. store a list of visible selected items
2. when you show items:
a) deselect all rows (watch out not to fall into an infinite loop as selectionChanged() will be emitted)
b) select only those rows which were stored in (1)