Hi,
I use a VisibilityRefreshHandler in the footer of my AppListView. When it becomes visible, it fires the backend.nextPage() method and updates the model.
And after the model changed, the console is full of this errors:
qrc:///qml/VPlayApps/controls/VisibilityRefreshHandler.qml:92:3: QML Item: Binding loop detected for property "posInList"
qrc:///qml/VPlayApps/controls/VisibilityRefreshHandler.qml:92:3: QML Item: Binding loop detected for property "posInList"
qrc:///qml/VPlayApps/controls/VisibilityRefreshHandler.qml:92:3: QML Item: Binding loop detected for property "posInList"
qrc:///qml/VPlayApps/controls/VisibilityRefreshHandler.qml:92:3: QML Item: Binding loop detected for property "posInList"
[...]
I tried to look inside the file VisibilityRefreshHandler, but I get a message that I am not allowed to.
Here is the AppListView Code:
AppListView {
id: listView
anchors.top: customBar.bottom
anchors.bottom: parent.bottom
model: backend.model
// This delegate is just for testing
delegate: Item {
width: parent.width
height: dp(100)
Rectangle {
color: "white"
anchors.fill: parent
Text {
font.pointSize: 20
text: "Element " + index
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}
}
}
backgroundColor: "#000000"
scrollIndicatorVisible: false
// Load newer elements by pulling the list down
PullToRefreshHandler {
id: refreshHandler
contentColor: Theme.navigationBar.titleColor
onRefresh: {
backend.firstPage();
}
} // - end PullToRefreshHandler
// Load more elements if this item becomes visible
footer: VisibilityRefreshHandler {
id: footerRefreshHandler
onRefresh: {
backend.nextPage();
}
} // - end VisibilityRefreshHandler
Component.onCompleted: {
// init backend and fetch configuration from api
backend.init();
// init model
backend.firstPage();
}
} // - AppListView end
What am I doing wrong here?
Cheers,
Arne