Block wrapping of elements in path view
-
Hello all,
Im trying to use path view in my qml file. Generally the elements are displayed with carousel effect with key and touch input. However I have tried to block the key input when reaching the first or last element of the path. But when i use with interactive property with true to realize mouse input, im not able to block it.
Blocked the key input with below simple logic,
Keys.onUpPressed: {
if (pathview.currentIndex !== 0)
pathview.decrementCurrentIndex()
}
Keys.onDownPressed: {
if (currentIndex !== level1Model.count - 1)
pathview.incrementCurrentIndex()
}Could anybody help to solve my problem to block wrapping with touch input in path view?
Thanks in advance!