Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problems with accessibility when QML Window is used
Forum Updated to NodeBB v4.3 + New Features

Problems with accessibility when QML Window is used

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.9k 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.
  • I Offline
    I Offline
    iblank3
    wrote on last edited by
    #1

    We are trying to implement Accessibility friendly application. We found that screen readers (AccExplorer32, Narrator) fail to recognize QML elements when the application top window is implemented using Window object. Consider:
    @Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Text {
        text: qsTr("Hello World")
        x: 10
        y: 10
        Accessible.name: "stam pam"
        Accessible.role: Accessible.StaticText
    }
    
    Rectangle {
        x: 10
        y: 100
        width: 200
        height: 200
        color: "#f70808"
        Accessible.name: "bom nom"
        Accessible.role: Accessible.Button
    }
    

    }

    On Other hand screen reader works fine with ApplicationWindow

    ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Text {
        text: qsTr("Hello World")
        x: 10
        y: 10
        Accessible.name: "stam pam"
        Accessible.role: Accessible.StaticText
    }
    
    Rectangle {
        x: 10
        y: 100
        width: 200
        height: 200
        color: "#f70808"
        Accessible.name: "bom nom"
        Accessible.role: Accessible.Button
    }
    

    }

    Is it a bug? Are we doing something wrong?
    @

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

      Hi and welcome to devnet,

      Which version of Qt are you currently using ?

      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
      • I Offline
        I Offline
        iblank3
        wrote on last edited by
        #3

        Hi, thanks for welcoming.

        We are using open source Qt 5.3.2, vs2013, 64 bit. In the example above screen readers would recognize only Hello World Text element, but will miss Rectangle if used inside Window. Both Text and Rectangle are recognized when used inside ApplicationWindow
        Regards
        Ilia

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

          Then, you should test with the Qt 5.4 beta to see if it's still the same

          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
          • I Offline
            I Offline
            iblank3
            wrote on last edited by
            #5

            Tried it with Qt 5.4. The problem persists. Can I assume it is a bug?

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

              Either a bug or a yet to be implemented feature. You should check the "bug report system":http://bugreports.qt-project.org to see if there's something about it

              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