有 QML 控件 ScrollBar ,鼠标滚轮快速滚动列表,我需要慢一点执行。可以使用哪些属性?
Qt 5.9
这是来自一个示例(来自 Qt 工具包的 rssnews 示例项目):
...
ListView {
id: categories
property int itemWidth: 190
width: isPortrait ? parent.width : itemWidth
height: isPortrait ? itemWidth : parent.height
orientation: isPortrait ? ListView.Horizontal : ListView.Vertical
anchors.top: parent.top
model: rssFeeds
delegate: CategoryDelegate { itemSize: categories.itemWidth }
spacing: 3
}
ScrollBar {
id: listScrollBar
orientation: isPortrait ? Qt.Horizontal : Qt.Vertical
height: isPortrait ? 8 : categories.height;
width: isPortrait ? categories.width : 8
scrollArea: categories;
anchors.right: categories.right
}
...
我在ScrollView看到了这个:
/*! \internal */
property alias __wheelAreaScrollSpeed: wheelArea.scrollSpeed
但是找不到适合我的情况的 scrollSpeed 属性...