Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0, 4.7.1
-
None
-
Win 7 64bits
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.