Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84549

Empty accessibility property 'name' in qml textfield

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.8
    • None
    • Linux

    Description

      When setting the echoMode Property of a qml textfield to TextInput.Password or TextInput.PasswordEchoOnEdit the accessibility property 'name' of the textfield is empty.

      The 'name' property should never by empty, otherwise the user can not be informed about the context a textfield is used for.

      Details:

      The accessibility property 'name' is empty if state contains the 'passwordEdit' flag (src/quick/items/qquickaccessibleattached_p.h::117). This flag is only set via the echoMode of qml textfield. I did not find any other places in qt-code which directly or indirectly alter 'passwordEdit' flag.

      Fix:

      I attached a patch which fixes the problem. The patch should not produce any side effects since the 'passwordEdit' flag is only set via the echMode property of a textfield.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            _hagen_ Hagen Mölle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes