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

TextInput doesn't repaint correctly when color property changes

    XMLWordPrintable

Details

    Description

      TextInput element won't repaint itself when color property changes

      Try this example code :

      import Qt 4.7
      
      Rectangle {
          width: 200
          height: 200
      
          Text {
      	id: myText
      	text:"Hello World"
          }
      
          TextInput {
      	id:myTextInput
      	x:100
      	text:"Hello World"
          }
      
          MouseArea {
      	anchors.fill: parent
      	onClicked: {
      	    myText.color = "red"
      	    myTextInput.color = "red" //Doesn't work, unless we uncomment the following two lines
      	    //myTextInput.visible = false
      	    //myTextInput.visible = true
      	}
          }
      }
      
      

      Clicking in the window won't make the TextInput appear as red, unless we manually forces a repaint by hidding and showing it.

      Attachments

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

        Activity

          People

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            gregschlom Gregory Schlomoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes