... | ... | @@ -29,8 +29,12 @@ Assign icons of multiple sizes to each action. |
|
|
|
|
|
## Keyboard Navigation
|
|
|
|
|
|
All control elements should be navigable by using keyboard only. Forget about the mouse cursor for the moment.
|
|
|
All control elements should be navigable by using keyboard only. Forget about the mouse cursor for the moment. The selection sequence should follow a reasonable order.
|
|
|
|
|
|
The selection sequence should follow a reasonable order. Use `QWidget::setTabOrder()` to manually set the sequence.
|
|
|
Normally, the tab order is specified by the order of creation of the control elements. While it may be fine for small forms it becomes confusing for large forms or forms with more complicated functionality.
|
|
|
|
|
|
Qt creator provides when editing form files the 'Edit Tab Order' functionality. Here you can select the tab order of the common control elements. this may, however, not be sufficient, because some elements do not provide `Qt::StrongFocus` or `Qt::TabFocus` policy by default.
|
|
|
|
|
|
For more complicated forms such as when enabling focus on elements in a tool bar you have to call `QWidget::setTabOrder()` and `setFocusPolicy()` for each affected widget from a suitable place in the C++ code.
|
|
|
|
|
|
Table views and widgets by default tend to cycle between all cells when Tab is pressed. Install `TableTabIgnoreFilter` to such elements to prohibit such behaviour. |
|
|
\ No newline at end of file |