qml 解决 ListView 刷新 index 重置到开头的问题

property int conY: 0
ListView
{
    id:list
    onContentXChanged:
    {

     if(contentY !=0)
     {
         conY = contentY
     }

    }
}
    ...
onListModelChanged:
{
    list.contentY = conY
}
发布了1 篇原创文章 · 获赞 0 · 访问量 5

猜你喜欢

转载自blog.csdn.net/suiyee/article/details/105100860