Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to correctly handle tab order in qml?
Forum Update on Monday, May 27th 2025

How to correctly handle tab order in qml?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
taborderfocusfocus issueinterfaceinteraction
1 Posts 1 Posters 926 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jeanmilostJ Offline
    jeanmilostJ Offline
    jeanmilost
    wrote on last edited by
    #1

    In my project I need to finalize the tab order onto the interface. I found that this order may be configured by setting the KeyNavigation.tab property in every not well sorted item.

    However my interface isn't just a basic interface with few items, it contains complex components, e.g SwipeView, many of them are embedded in others, or exists on pages which are loaded dynamically, and the interface may greatly vary depending on what the user is doing, e.g a swipe view may show a random page, or an item may be hidden until a given action is performed, and so on.

    For that reason I cannot simply define the "KeyNavigation.tab to the next item to focus", as suggested in the documentation. For example, how can I define the focus order when the next button to focus is a given button, unless another button become visible between? Or if the next item to focus depends on the current visible Page of a SwipeView?

    Some point are unclear for me. What happen e.g if I set the KeyNavigation.tab to point to a currently hidden item, which points itself to another visible item? Is the focus following the tab chain and passing directly to the visible item, or will it stuck on the hidden item?

    And I couldn't found any tool to help to manage the tab order, so is Qt providing a such tool, and where can I find it?

    Finally, how experimented developers are commonly handling a such situation?

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved