rahulch

Untitled

Sep 17th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.01 KB | None | 0 0
  1. Switch {
  2.             id: modeToggleSwitch
  3.             anchors.right: parent.right
  4.             anchors.top: titleText.bottom
  5.             style: SwitchStyle {
  6.                 groove: Rectangle {
  7.                     z: 1
  8.                     anchors {
  9.                         top: parent.top
  10.                         right: parent.right
  11.                         topMargin: Screen.desktopAvailableHeight * 0.02
  12.                         rightMargin: Screen.desktopAvailableWidth * 0.01
  13.                     }
  14.                     implicitWidth: Screen.desktopAvailableWidth * 0.1
  15.                     implicitHeight: Screen.desktopAvailableHeight * 0.1
  16.                     radius: 9
  17.                     border.color: control.activeFocus ? "darkblue" : "gray"
  18.                     border.width: 1
  19.                     color: "transparent"
  20.                    
  21.                 }
  22.             }
  23.             checked: true
  24.             onCheckedChanged: {
  25.                 console.log("checked = ", checked)
  26.             }
  27.         }
Add Comment
Please, Sign In to add comment