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. How to stop screen reader(Narrator) from reading password field in QML

How to stop screen reader(Narrator) from reading password field in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
11 Posts 5 Posters 1.5k Views
  • 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.
  • A Offline
    A Offline
    Ajay Krishna
    wrote on last edited by Ajay Krishna
    #1

    Hi I have developed a QML app for windows 10 where windows narrator can reads contents of my app (Screen). Now i want narrator not to read text i am entering in password field . can someone help in managing this ?

    I have tried same with QLinedit where if i set lineedit to password mode and start typing narrators says hidden and whereas in case of TextInput it reads the keys i type even i set it to echoMode: TextInput.Password .

    TextInput{
    width: 240
    text: ""
    font.family: "Helvetica"
    font.pointSize: 20
    color: "blue"
    focus: true
    Accessible.name: ""
    Accessible.description: ""
    Accessible.passwordEdit: true
    Accessible.ignored: true

    echoMode: TextInput.Password
    }

    ODБOïO J.HilkJ 2 Replies Last reply
    0
    • A Ajay Krishna

      Hi I have developed a QML app for windows 10 where windows narrator can reads contents of my app (Screen). Now i want narrator not to read text i am entering in password field . can someone help in managing this ?

      I have tried same with QLinedit where if i set lineedit to password mode and start typing narrators says hidden and whereas in case of TextInput it reads the keys i type even i set it to echoMode: TextInput.Password .

      TextInput{
      width: 240
      text: ""
      font.family: "Helvetica"
      font.pointSize: 20
      color: "blue"
      focus: true
      Accessible.name: ""
      Accessible.description: ""
      Accessible.passwordEdit: true
      Accessible.ignored: true

      echoMode: TextInput.Password
      }

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @Ajay-Krishna hi
      i have never used it, but maybe you can set Accessible.ignored: true on your password field ?

      1 Reply Last reply
      2
      • A Ajay Krishna

        Hi I have developed a QML app for windows 10 where windows narrator can reads contents of my app (Screen). Now i want narrator not to read text i am entering in password field . can someone help in managing this ?

        I have tried same with QLinedit where if i set lineedit to password mode and start typing narrators says hidden and whereas in case of TextInput it reads the keys i type even i set it to echoMode: TextInput.Password .

        TextInput{
        width: 240
        text: ""
        font.family: "Helvetica"
        font.pointSize: 20
        color: "blue"
        focus: true
        Accessible.name: ""
        Accessible.description: ""
        Accessible.passwordEdit: true
        Accessible.ignored: true

        echoMode: TextInput.Password
        }

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by J.Hilk
        #3

        @Ajay-Krishna
        what do you use as input field?
        TextInput for example has an echo mode property that, when set (TextInput.Password ) should not allow the screenreader to read the content


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        2
        • A Offline
          A Offline
          Ajay Krishna
          wrote on last edited by
          #4

          Hi @J-Hilk and @LeLev I tried this example its not working . Screen reader still spells the text I type

          TextInput{
          width: 240
          text: ""
          font.family: "Helvetica"
          font.pointSize: 20
          color: "blue"
          focus: true
          Accessible.name: ""
          Accessible.description: ""
          Accessible.passwordEdit: true
          Accessible.ignored: true

                  echoMode: TextInput.Password 
              }
          
          ODБOïO 1 Reply Last reply
          0
          • A Ajay Krishna

            Hi @J-Hilk and @LeLev I tried this example its not working . Screen reader still spells the text I type

            TextInput{
            width: 240
            text: ""
            font.family: "Helvetica"
            font.pointSize: 20
            color: "blue"
            focus: true
            Accessible.name: ""
            Accessible.description: ""
            Accessible.passwordEdit: true
            Accessible.ignored: true

                    echoMode: TextInput.Password 
                }
            
            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by ODБOï
            #5

            @Ajay-Krishna there is also a bool property called passwordEdit , try set it to true
            https://doc.qt.io/qt-5/qml-qtquick-accessible.html#passwordEdit-prop

            A 1 Reply Last reply
            3
            • ODБOïO ODБOï

              @Ajay-Krishna there is also a bool property called passwordEdit , try set it to true
              https://doc.qt.io/qt-5/qml-qtquick-accessible.html#passwordEdit-prop

              A Offline
              A Offline
              Ajay Krishna
              wrote on last edited by
              #6

              @LeLev i have tried with password edit too . It is not showing any difference in behaviour .

              aha_1980A 1 Reply Last reply
              0
              • A Ajay Krishna

                @LeLev i have tried with password edit too . It is not showing any difference in behaviour .

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Ajay-Krishna which Qt version do you use?

                Qt has to stay free or it will die.

                A 1 Reply Last reply
                0
                • aha_1980A aha_1980

                  @Ajay-Krishna which Qt version do you use?

                  A Offline
                  A Offline
                  Ajay Krishna
                  wrote on last edited by
                  #8

                  @aha_1980 Qt 5.12 x

                  J.HilkJ 1 Reply Last reply
                  0
                  • A Ajay Krishna

                    @aha_1980 Qt 5.12 x

                    J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on last edited by
                    #9

                    @Ajay-Krishna
                    you answered 1/2 of the question, what -bug fix- patch version of Qt 5.12

                    May be important, if we talk about a potential bug in Qt 🤷‍♂️


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    A 1 Reply Last reply
                    0
                    • J.HilkJ J.Hilk

                      @Ajay-Krishna
                      you answered 1/2 of the question, what -bug fix- patch version of Qt 5.12

                      May be important, if we talk about a potential bug in Qt 🤷‍♂️

                      A Offline
                      A Offline
                      Ajay Krishna
                      wrote on last edited by
                      #10

                      @J-Hilk said in How to stop screen reader(Narrator) from reading password field in QML:

                      what -bug fix- patch version of Qt 5.12

                      QMake version 3.1
                      Using Qt version 5.12.0

                      Is there anything i want to check ?

                      1 Reply Last reply
                      0
                      • dheerendraD Offline
                        dheerendraD Offline
                        dheerendra
                        Qt Champions 2022
                        wrote on last edited by
                        #11

                        It is bug in Qt. Please look at the bug

                        https://bugreports.qt.io/browse/QTBUG-82433

                        Dheerendra
                        @Community Service
                        Certified Qt Specialist
                        http://www.pthinks.com

                        1 Reply Last reply
                        5

                        • Login

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