[Interest] How do properly deal with items being disabled in a focus scope in Quick2 (5.2.0)?

Ola Røer Thorsen ola at silentwings.no
Wed Jan 22 13:46:03 CET 2014


I've got a custom menu item (ColumnLayout-based), where the items inside
are some custom button items. Each item is set up with KeyNavigation so
that active focus is moved up and down using the cursor keys.

If a button item's "enabled" property is set to false while having active
focus, it's not possible to move active focus with the keys anymore. The
item will not have active focus, and will not receive key events. The focus
scope will not pass active focus to any other item either, so you are
basically stuck. Using mouse or touch input is not always an option.

How is this supposed to work? The way this works now, custom javascript
focus handler code has to be added tailor made for a certain menu, everyone
will have to invent their own.

I would have hoped the focus scope could move active focus to the next item
in the focus chain, if the active item is disabled.

Cheers,
Ola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140122/20c399b2/attachment.html>


More information about the Interest mailing list