Skip to content

Instantly share code, notes, and snippets.

@webmaster128
Created December 15, 2013 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webmaster128/7979803 to your computer and use it in GitHub Desktop.
Save webmaster128/7979803 to your computer and use it in GitHub Desktop.
Reproduce CheckBox bug
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