I have created my own custom view for the model/view framework that inherits from QAbstractItemView. My view is basically a scatter plot from two columns in the model. Each Item (or pair of items in a row) is represented by a small square in the plot. When an item is selected I change its color in the plot.

My problem is that the selected items are only updated when the mouse cursor moves over a plotted point. From the documentation this appears to be how selections have been designed and it works fine for the tableview because you always move the mouse over cells when you are creating selections. This doesn't work in my case because the selectedItems needs to be updated whenever the rubberband region changes (mouse move event maybe).

Should I add a new call to the setSelection(QRect..) function whenever the mouse moves?

Thanks -Isaac