Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.30 KB | None | 0 0
  1. /*Dialog {
  2.     id: dialog
  3.     Column {
  4.         x: 30
  5.         y: 50
  6.         Label {
  7.             text: "Dialog box"
  8.             x: parent.x + 20
  9.         }
  10.         TextField {
  11.             width: 500
  12.             placeholderText: "Input value"
  13.         }
  14.     }
  15. }*/
  16.  
  17. /*Dialog {
  18.     id: dialog
  19.     Column {
  20.         width: parent.width
  21.         Button {
  22.             id: button
  23.             text: "Button"
  24.             onClicked: button.down = !button.down
  25.             anchors.centerIn: parent
  26.         }
  27.     }
  28. }*/
  29.  
  30. /*Dialog {
  31.     id: dialog
  32.     Column {
  33.         width: parent.width
  34.         Button {
  35.             id: button
  36.             text: "Кнопка"
  37.             anchors.horizontalCenter: parent.horizontalCenter
  38.             onPressed: text.text = "Нажата"
  39.             onReleased: text.text = "Отпущена"
  40.         }
  41.         Label {
  42.             id: text
  43.             text: "Отпущена"
  44.             anchors.horizontalCenter: parent.horizontalCenter
  45.         }
  46.     }
  47. }*/
  48.  
  49. Dialog {
  50.     id: dialog
  51.     Column {
  52.         width: parent.width
  53.         ValueButton: {
  54.             id: button
  55.             label: "Счетчик"
  56.             description: "Считает счетчик нажатий"
  57.             value: "0"
  58.             onClicked: button.value++
  59.         }
  60.     }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement