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. Accessibility for Custom Painted Items
Forum Updated to NodeBB v4.3 + New Features

Accessibility for Custom Painted Items

Scheduled Pinned Locked Moved Unsolved General and Desktop
accessibilityscreen readerfocus issue
2 Posts 2 Posters 116 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.
  • M Offline
    M Offline
    Mukthar
    wrote last edited by
    #1

    I'm creating a custom widget (ChatListWidget) in Qt where multiple rows (chat items) are drawn manually using QPainter. I’ve assigned the widget the role QAccessible::List, and each row is represented by a custom QAccessibleInterface child with role ListItem.

    I'm sending accessibility events (QAccessible::Focus, Selection) when the current row changes.

    The issues:

    • Since all rows are in a single widget, how can I properly focus a specific row so the screen reader reads it?
    • Screen readers only announce the initial row, not subsequent ones on navigation.
    • What's the correct way to notify screen readers to read custom painted list items?
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi and welcome to devnet,

      Something is not clear: are you creating a full custom widget ? It seems so but since Qt provides the base classes to create your own custom views within the model view set of classes, it would be good to clarify that first.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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