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.1k 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 5 Feb 2020, 15:08 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
    }

    O J 2 Replies Last reply 5 Feb 2020, 16:05
    0
    • A Ajay Krishna
      5 Feb 2020, 15:08

      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
      }

      O Offline
      O Offline
      ODБOï
      wrote on 5 Feb 2020, 16:05 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
        5 Feb 2020, 15:08

        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 Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 5 Feb 2020, 16:07 last edited by J.Hilk 2 May 2020, 16:09
        #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 5 Feb 2020, 16:18 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 
              }
          
          O 1 Reply Last reply 5 Feb 2020, 17:06
          0
          • A Ajay Krishna
            5 Feb 2020, 16:18

            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 
                }
            
            O Offline
            O Offline
            ODБOï
            wrote on 5 Feb 2020, 17:06 last edited by ODБOï 2 May 2020, 17:07
            #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 21 Feb 2020, 07:48
            3
            • O ODБOï
              5 Feb 2020, 17:06

              @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 21 Feb 2020, 07:48 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 21 Feb 2020, 08:32
              0
              • A Ajay Krishna
                21 Feb 2020, 07:48

                @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 21 Feb 2020, 08:32 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 21 Feb 2020, 10:05
                0
                • aha_1980A aha_1980
                  21 Feb 2020, 08:32

                  @Ajay-Krishna which Qt version do you use?

                  A Offline
                  A Offline
                  Ajay Krishna
                  wrote on 21 Feb 2020, 10:05 last edited by
                  #8

                  @aha_1980 Qt 5.12 x

                  J 1 Reply Last reply 21 Feb 2020, 10:15
                  0
                  • A Ajay Krishna
                    21 Feb 2020, 10:05

                    @aha_1980 Qt 5.12 x

                    J Offline
                    J Offline
                    J.Hilk
                    Moderators
                    wrote on 21 Feb 2020, 10:15 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 21 Feb 2020, 12:51
                    0
                    • J J.Hilk
                      21 Feb 2020, 10:15

                      @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 21 Feb 2020, 12:51 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 24 Feb 2020, 12:54 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