Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15, 6.2, 6.3
-
None
Description
QAbstractItemVIew inherits from QAbstractScrollAreaPrivate and in
QAbstractItemViewPrivate::init()
connects actionTriggered, and valueChanged of both the horizontal and vertical scrollbars, with slots verticalScrollbarAction and horizontalScrollbarAction that for more complex views will call the QAbstractItemModel's fetchMore if necessary.
However, if you call QAbstractScrollArea::setVerticalScrollBar with a replacement scrollbar, those connections are not made and get stale.
It calls QAbstractScrollAreaPrivate::replaceScrollBar that connects valueChanged (and rangeChanged), to its own slots, but the connections of its subclass are not updated (and cannot be without adding a virtual method).
The same happens with setHorizontalScrollbar.