Hi,
I have a strange issue with the SwipeView component. When using with a other default index set by binding the onItemChanged event get triggered with null item.
What do I wrong. What can I do to get always a valid item? May be it is a bug?
The output is:
2
null
2
null
The Code:
import Felgo 3.0
import QtQuick 2.15
import QtQuick.Controls 2.15 as QQC
App {
Page {
id: currentPage
title: "Demo"
property int swipeDefaultIndex:2
QQC.SwipeView {
id: swipeView
currentIndex: currentPage.swipeDefaultIndex
anchors.fill: parent
onCurrentItemChanged: {
console.log(currentIndex)
console.log(currentItem)
}
onCurrentIndexChanged: {
console.log(currentIndex)
console.log(currentItem)
}
Repeater {
model: 7
Item {
}
}
}
}
}