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

QML2 TextInput component doesn't signal property changes for text and cursor position when "text" property is set.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.0
    • 5.0.0
    • GUI: Text handling
    • None
    • Qt5, SHA1 423d8d9af789778483850c45e72d36f79b30a915
    • 4bbcbec3fa514ebadfb1cd3826925239598fcaa1

    Description

      It seems to me that QLineControl::internalSetText method doesn't call finishChange() if Qt5 is built with QT_NO_ACCESSIBILITY. The result is that
      QLineControl doesn't signal property changes for text and cursor position when setText is called and QML TextInput component, which internally uses QLineControl, doesn't receive those either.

      Run the attached textinputexample.qml with qmlscene and press the button. It will set text-property for the TextInput component. If property changes are signaled, red squares at the middle will turn green and the text "Hello World!" will appear in the editor. With Qt5 SHA1 in "Environment" part, they will remain red.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            antseppa Antti Seppälä (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes