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. QListWidget working as a menu - need to be able to activate menu options using number keys rather than just getting focus
Qt 6.11 is out! See what's new in the release blog

QListWidget working as a menu - need to be able to activate menu options using number keys rather than just getting focus

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k 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.
  • D Offline
    D Offline
    Dolphin
    wrote on last edited by
    #1

    This application is for accessibility so will be used by blind/visually impaired users amongst others. So it has a listWidget on the screen disguised as a menu using style sheets. The functionality behind each item on the list needs to be accessed in the following ways:

    • mouse click
    • up and down arrows to select then hit return key
    • number key (voice says "press 1 for email" etc)
    • hands free voice activation
    • Braille input

    the last two I have not got to yet because I am failing to get the first 3 working (I can get all of them working but not all at the same time, fixing one breaks another). The listWidget already processes number keys (if you press 4 the 4th row gets selected - I need pressing 4 to run the menu item functionality without a second user input) but I am just missing something in how it works.

    Is this something I just need to do with different object?

    1 Reply Last reply
    0

    • Login

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