Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.6.2, 5.9.1
-
None
Description
The problematic code reads:
void QAbstractItemViewPrivate::setHoverIndex(const QPersistentModelIndex &index) { Q_Q(QAbstractItemView); if (hover == index) return; if (selectionBehavior != QAbstractItemView::SelectRows) { q->update(hover); //update the old one q->update(index); //update the new one } else { QRect oldHoverRect = q->visualRect(hover); QRect newHoverRect = q->visualRect(index); viewport->update(QRect(0, newHoverRect.y(), viewport->width(), newHoverRect.height())); viewport->update(QRect(0, oldHoverRect.y(), viewport->width(), oldHoverRect.height())); } hover = index; }
So it special-cases SelectRows (which works). However, SelectColumns also needs to be special-cased.