Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.2
-
None
-
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 } }