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. Allow return key in tab order
Forum Updated to NodeBB v4.3 + New Features

Allow return key in tab order

Scheduled Pinned Locked Moved Unsolved General and Desktop
tabtaborderqwidgetreturnpressedkey event
1 Posts 1 Posters 792 Views 1 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.
  • L Offline
    L Offline
    LeP3nguin
    wrote on 17 Aug 2016, 16:05 last edited by LeP3nguin
    #1

    Hello,

    I am currently replacing an old application where users can enter different text, press buttons, ... in order to do their work.
    Those users are used to have a specific tab order for different tasks.
    E.g.: Tab|Return|Tab|Tab|Return

    Unfortunately the tab order system in Qt using tab stops doesn't accept events by the return key and only allows the space bar as a signal emitter.
    So user's would have to do the following in my rewritten app: Tab|Space|Tab|Tab|Space
    (I'm using Qt 5.7, I don't know which framework the old app used, might even be native Win32).

    I got some requests by users to change that behaviour back so they can use their good old 'return'-keys instead of the evil and mean space-bar. Yippiyeah!

    Is there any way to do this? I thought about filtering the TabKey-Event and set the auto-default value for each widget. But as far as I am aware those tab-events are filtered by the top-widget itself in order to process the focus changes? At least I didn't manage to capture any.

    Are there any other possible solutions I am missing or might I have to reimplement the QWidget class in the end?

    Thanks, LeP3nguin

    1 Reply Last reply
    0

    1/1

    17 Aug 2016, 16:05

    • Login

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