Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Switch {
- id: modeToggleSwitch
- anchors.right: parent.right
- anchors.top: titleText.bottom
- style: SwitchStyle {
- groove: Rectangle {
- z: 1
- anchors {
- top: parent.top
- right: parent.right
- topMargin: Screen.desktopAvailableHeight * 0.02
- rightMargin: Screen.desktopAvailableWidth * 0.01
- }
- implicitWidth: Screen.desktopAvailableWidth * 0.1
- implicitHeight: Screen.desktopAvailableHeight * 0.1
- radius: 9
- border.color: control.activeFocus ? "darkblue" : "gray"
- border.width: 1
- color: "transparent"
- }
- }
- checked: true
- onCheckedChanged: {
- console.log("checked = ", checked)
- }
- }
Add Comment
Please, Sign In to add comment