Qt 在轻弹时,QML ListView被卡住
我的qml文件中有一个ListView,但当我对它进行过度滚动时,它会被卡住几秒钟,然后弹回来。有人知道延迟的原因是什么吗 而且,只有当我的代表中的文本是俄语时,才会冻结。关于英语,它很好用 Upd: 没有具体的,但最小的,可重复的例子:Qt 在轻弹时,QML ListView被卡住,qt,qml,Qt,Qml,我的qml文件中有一个ListView,但当我对它进行过度滚动时,它会被卡住几秒钟,然后弹回来。有人知道延迟的原因是什么吗 而且,只有当我的代表中的文本是俄语时,才会冻结。关于英语,它很好用 Upd: 没有具体的,但最小的,可重复的例子: ListView { id: list anchors { right: parent.right top: parent.top } heigh
ListView {
id: list
anchors {
right: parent.right
top: parent.top
}
height: parent.height
width: 502
interactive: height < contentHeight
spacing: 24
currentIndex: -1
footer: Item {
height: 100
}
delegate: Item {
anchors {
left: list.contentItem.left
right: list.contentItem.right
leftMargin: 40
rightMargin: 40
}
implicitHeight: Math.max(image.height, description.implicitHeight)
// Some other code
}
ScrollBar.vertical: OknaGui.ScrollBar { id: scrollBar } // Just a scrollbar
}
ListView{
id:列表
锚定{
右:家长。对
top:parent.top
}
高度:parent.height
宽度:502
交互式:高度<内容高度
间距:24
当前索引:-1
页脚:项目{
身高:100
}
代表:议程项目{
锚定{
左:list.contentItem.left
右:list.contentItem.right
左边距:40
右边距:40
}
implicitHeight:Math.max(image.height,description.implicitHeight)
//其他代码
}
ScrollBar.vertical:OknaGui.ScrollBar{id:ScrollBar}//只是一个滚动条
}
这可能不是正确的解决方案,但您可以使用边界行为:Flickable禁用overscroll。StopAtBounds
一个最小的、可复制的示例在这里会很有帮助。它只是一个普通的列表视图。如果这对你有帮助的话,我已经更新了问题是的,我已经像那样解决了这个问题。但是保存以前的功能会很酷