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. Prevent screen reader to read all content when opening a dialog
Forum Updated to NodeBB v4.3 + New Features

Prevent screen reader to read all content when opening a dialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.4k 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.
  • O Offline
    O Offline
    Oreonan
    wrote on last edited by
    #1

    Hi,
    for one project where I contribute, we have a lot of dialogs when user can open or close.
    One of there is a private message dialog, but this cause an accessibility issue, when this dialog is open, screen reader try to read all content of this, and when conversation is big, this cause screen reader to freeze until he stop to read all window's content.
    This is also present when window is open and give focus.
    If necessary I can send a part of .ui file for this window.
    Do you know a method to prevent this behavior, maybe we have to use QAccessible, or QAccessibleEvent or QAccessibleInterface, but I don't know how.
    Thanks for your help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Rather than having one single block of big text, you could maybe split them in smaller chunks like a QListView showing on entry per line of text.

      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
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Just as a note.
        Can you try adding a Qlabel with

        <div aria-hidden="true">
            <p>This element will is hidden from screen readers.</p>
        <div>
        

        as Rich text and see if it still reads it ?

        1 Reply Last reply
        0
        • O Offline
          O Offline
          Oreonan
          wrote on last edited by
          #4

          Hi,
          @mrjj if I add this, unfortunately screen reader is still reading content...

          mrjjM 1 Reply Last reply
          0
          • O Oreonan

            Hi,
            @mrjj if I add this, unfortunately screen reader is still reading content...

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Oreonan
            Hi
            Ok. It was worth a shot. I saw in on the JAWS forum but
            might be a JAWS thing solely.

            So it did also read the label ?

            1 Reply Last reply
            0
            • O Offline
              O Offline
              Oreonan
              wrote on last edited by
              #6

              Yes it also read the label. If this info can be usefull I'm working with NVDA.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                What about splitting the content ?

                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
                • O Offline
                  O Offline
                  Oreonan
                  wrote on last edited by
                  #8

                  It's probably the best way, but I don't know if I can continue using a QPlainText to put conversation history in this case.

                  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