Re: [Interest] QtQuick - How to move focus away from disabled Item?

2015-01-29 Thread Nate Rogers
I would do it externally from the buttons themselves on the event that causes the permissions to change.  On the event you could first loop through to find the button with the active focus and if it is no longer enabled then you could loop through each button to find one that is and set it's

Re: [Interest] QtQuick - How to move focus away from disabled Item?

2015-01-28 Thread Ola Røer Thorsen
Hi Jerome, thanks! Yes I know about the FocusScope item and how it works. The specific issue is the one I explained in my previous email, and I'm looking for a workaround. FocusScope doues not move focus to another item if the current focus item is disabled. Cheers, Ola 2015-01-28 18:04

[Interest] QtQuick - How to move focus away from disabled Item?

2015-01-28 Thread Ola Røer Thorsen
Hi, I'm having some trouble making a robust QtQuick 5.4-based application where I only have 4 cursor keys and a return key available as the input method for the user. I have various gui buttons that I can move focus between. I've set this up using the KeyNavigation.onXXX etc. For a simple static

Re: [Interest] QtQuick - How to move focus away from disabled Item?

2015-01-28 Thread Jérôme Godbout
Hi, This may not be a direct answer but you may want to take a look at FocusScope Qml Element: http://doc.qt.io/qt-5/qml-qtquick-focusscope.html Here's a good explaination about those scope: http://doc.qt.io/qt-5/qtquick-input-focus.html Hope this help somehow, Jerome On Wed, Jan 28, 2015 at