Created
December 15, 2013 23:25
-
-
Save webmaster128/7979803 to your computer and use it in GitHub Desktop.
Reproduce CheckBox bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.2 | |
import QtQuick.Controls 1.1 | |
Rectangle { | |
id: root | |
color: "silver" | |
height: 150 | |
width: 200 | |
Timer { | |
running: true | |
interval: 1000 | |
repeat: true | |
onTriggered: master.visible = !master.visible | |
} | |
Rectangle { | |
id: master | |
color: "red"; | |
width: parent.width | |
height: 20 | |
visible: false | |
} | |
Rectangle { | |
id: slave1 | |
color: "green"; | |
y: 50 | |
x: 0 | |
width: 20 | |
height: 20 | |
visible: master.visible | |
} | |
Text { | |
id: slave2 | |
text: "A label" | |
y: 50 | |
x: 30 | |
width: 20 | |
height: 20 | |
visible: master.visible | |
} | |
CheckBox { | |
id: checkBox | |
y: 50 | |
x: 100 | |
text: "Checkbox" | |
checked: master.visible | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment