[Qt-components] Key navigation
Alberto Mardegan
mardy at users.sourceforge.net
Wed Jan 2 11:37:04 CET 2013
Hi all!
I was trying to make the keyboard navigation (with TAB and back-TAB)
work inside a Dialog (from QtDesktopComponents), but the thing doesn't
seem to be trivial. For instance, the Dialog's default buttons are
placed inside a Row element, whose layoutDirection changes according to
the style: therefore, one would expect the key navigation to change
accordingly.
It would be nice if there was a default key navigation flow, implicitly
built according to the placement of the components inside a window; then
the keyNavigation properties could be used to override this when needed.
The QtWidgets library also provides a default key navigation, so it
seems sensible if the QML components have the same.
Are there any existing plans or ideas on this?
Maybe a "canFocus" property should be added to all components which can
make some usage of the keyboard focus (and that therefore will be part
of the focus chain), and a "keyNavigation.direction" could be added to
all the containers (with possible values such as "RightLeftTopDown",
"TopDownRightLeft", etc., which would automatically change semantics on
some RTL locales)?
Ciao,
Alberto
More information about the Qt-components
mailing list