Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96158 QWebEngineView is not accessible with screen readers
  3. QTBUG-134056

Make Qt WebEngine expose HTML "lang" info for accessibility

    XMLWordPrintable

Details

    Description

      Code

      <!DOCTYPE html>
      <html>
      <head>
      	<meta charset="UTF-8">
      	<title>French Screen Reader Test</title>
      </head>
      <body lang="fr">
      	Ce paragraphe est défini en français.
      </body>
      </html>
      

       

      Steps to test

      1. Save the HTML document above into a *.html file on disk
      2. On a Windows system in English locale, install both the English and French voice packs for text-to-speech (https://www.tenforums.com/tutorials/132456-add-remove-speech-voices-windows-10-a.html )
      3. Turn on Windows Narrator
      4. Use Google Chrome or Microsoft Edge to load this *.html file and get Windows Narrator to read its contents
      5. Use the WebEngine Widgets Simple Browser Example to load this *.html file and get Windows Narrator to read its contents

      Note: If Windows Narrator doesn't read the text in the HTML page when it loads, try tweaking the Narrator Cursor settings (https://support.microsoft.com/en-au/windows/chapter-7-customizing-narrator-ce950246-c915-0d44-9be6-fb474387a285 ) and interact with the text with your mouse (hover, highlight, click)

       

      Outcomes

      • On Chrome/Edge, Windows Narrator reads the text with a French voice/accent (Expected)
      • On Qt WebEngine 6.8.2, Windows Narrator reads the text with an English voice/accent (Not Expected)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes