Solved How to use KeyNavigation up/ down/right/left when GridView interactive is false
-
Hi,
I am working on phone dial-pad, I am using GridView for it and I don't want it to be interactive to user. So, how I can I navigate keys up/down/left/right without making interactive true. Is there is any possiblity, if so, please let me know.
Thanks.
-
Does this do what you want?
GridView { interactive: false keyNavigationEnabled: true }
-
It's not working for me, as I don't have QtQuick 2.7
-
Ok, here's an alternative solution:
GridView { interactive: false Keys.onUpPressed: moveCurrentIndexUp() Keys.onDownPressed: moveCurrentIndexDown() Keys.onLeftPressed: moveCurrentIndexLeft() Keys.onRightPressed: moveCurrentIndexRight() }
-
Thanks for your valuable suggestion, I figured it out. we can make
interactive: true
boundsBehavior: GridView.StopAtBounds
so that you can interactive nicely, Sorry for a bad questions, I need to ask how to make GridView Flickable for user when interactive is active.