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

TextInput not repained when enchMode changes

    XMLWordPrintable

Details

    • afbf017b8929d1215851dc43823de61fb1ffa400

    Description

      When running the code below, clicking on the screen should turn the background red and the text into asterisks, but the text doesn't change.

      import Qt 4.7
      
      Rectangle {
          width: 950
          height: 500
      
          TextInput {
              id: textInput
              anchors.centerIn: parent
              echoMode: TextInput.Normal
              text: "Click me to change to password mode"
              font.pixelSize: 30
          }
      
          color: textInput.echoMode == TextInput.Password ? "red" : "green"
      
          MouseArea {
              anchors.fill: parent
              onClicked: textInput.echoMode = TextInput.Password
          }
      }
      

      Attachments

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

        Activity

          People

            bodson Yann Bodson (Inactive)
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes