property int conY: 0
ListView
{
id:list
onContentXChanged:
{
if(contentY !=0)
{
conY = contentY
}
}
}
...
onListModelChanged:
{
list.contentY = conY
}
qml 解决 ListView 刷新 index 重置到开头的问题
猜你喜欢
转载自blog.csdn.net/suiyee/article/details/105100860
今日推荐
周排行