Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to make QKeySequenceEdit capture Tab?
Forum Updated to NodeBB v4.3 + New Features

How to make QKeySequenceEdit capture Tab?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 281 Views 2 Watching
  • 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.
  • V Offline
    V Offline
    Vadi2
    wrote on last edited by
    #1

    I'd like my QKeySequenceEdit to be able to capture the Tab key for reasons of improved accessibility, but unfortunately that just makes the focus shift. Is this possible to do?

    Chris KawaC 1 Reply Last reply
    0
    • V Vadi2

      I'd like my QKeySequenceEdit to be able to capture the Tab key for reasons of improved accessibility, but unfortunately that just makes the focus shift. Is this possible to do?

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Vadi2 That's just not supported out of the box. You can try to override the keyPressEvent to handle that particular case yourself.

      Out of curiosity - how is that suppose to improve accessibility? If the edit swallows tab key how do you navigate that ui with just keyboard? How do you move focus out of that QKeySequenceEdit ? Sounds like detrimental to accessibility actually.

      1 Reply Last reply
      2

      • Login

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