I think it is a bug.Somehow qt creator didn't recognise it.I found some open source app that use switch element and open it with qt creator.Qt creator didn't recognize the "checked" property and the "oncheckchanged" signal handler,say it is not valid property but when compile,the app works find.Below is the code
Code:
Switch {
52 id: fbSwitch
53
54 anchors {
55 left: fbImg.right
56 leftMargin: 10
57 verticalCenter: fbImg.verticalCenter
58 }
59 visible: facebook.authenticated
60 checked: true
61 }
62
63 Button {
64 id: fbButton
65
66 anchors {
67 left: fbImg.right
68 leftMargin: 10
69 verticalCenter: fbImg.verticalCenter
70 }
71
72 font {
73 family: "Impact"
74 pixelSize: platformStyle.fontSizeSmall