Advertisement
amrith

Untitled

Apr 16th, 2021
3,515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.98 KB | None | 0 0
  1.  Text {
  2.         id: status
  3.         text: qsTr("Slow")
  4.         font.family: "Source Sans Pro"
  5.         color: "white"
  6.         font.pixelSize: 26
  7.         anchors.horizontalCenter: parent.horizontalCenter
  8.         anchors.top: fan.bottom
  9.         anchors.topMargin: 50
  10.     }
  11.  
  12.     ButtonGroup { id: radioGroup
  13.     exclusive: true
  14.  
  15.     }
  16.     ColumnLayout{
  17.         id:buttons_group
  18.         anchors.centerIn: parent
  19.         anchors.horizontalCenterOffset: -200
  20. spacing: 10
  21.     FanButton{
  22.         id:butt1
  23.         width:100
  24.         height: 50
  25.         txt:"slow"
  26.         checkable: true
  27.         checked: true
  28.         ButtonGroup.group: radioGroup
  29.     }
  30.     FanButton{
  31.         id:butt2
  32.         width:100
  33.         height: 50
  34.         txt:"Medium"
  35.         checkable: true
  36.         ButtonGroup.group: radioGroup
  37.     }
  38.     FanButton{
  39.         id:butt3
  40.         width:100
  41.         height: 50
  42.         txt:"Fast"
  43.         checkable: true
  44.         ButtonGroup.group: radioGroup
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement