Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Dialog {
- id: dialog
- Column {
- x: 30
- y: 50
- Label {
- text: "Dialog box"
- x: parent.x + 20
- }
- TextField {
- width: 500
- placeholderText: "Input value"
- }
- }
- }*/
- /*Dialog {
- id: dialog
- Column {
- width: parent.width
- Button {
- id: button
- text: "Button"
- onClicked: button.down = !button.down
- anchors.centerIn: parent
- }
- }
- }*/
- /*Dialog {
- id: dialog
- Column {
- width: parent.width
- Button {
- id: button
- text: "Кнопка"
- anchors.horizontalCenter: parent.horizontalCenter
- onPressed: text.text = "Нажата"
- onReleased: text.text = "Отпущена"
- }
- Label {
- id: text
- text: "Отпущена"
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- }*/
- Dialog {
- id: dialog
- Column {
- width: parent.width
- ValueButton: {
- id: button
- label: "Счетчик"
- description: "Считает счетчик нажатий"
- value: "0"
- onClicked: button.value++
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement