一种是按Item滚动, 一种是按像素滚动. 两种方式 , 按需所用.
enum QAbstractItemView::ScrollMode
Constant Value Description
QAbstractItemView::ScrollPerItem 0 The view will scroll the contents one item at a time.
QAbstractItemView::ScrollPerPixel 1 The view will scroll the contents one pixel at a time.setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
本文深入探讨了QAbstractItemView中ScrollPerItem与ScrollPerPixel两种滚动模式的区别,阐述了它们在不同场景下的应用与优劣。
7475

被折叠的 条评论
为什么被折叠?



