Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.30 KB | None | 0 0
  1. import QtQuick 2.12
  2. import QtQuick.Controls 2.12
  3. import QtQuick.Layouts 1
  4.  
  5. Item {
  6.     anchors.fill: parent
  7.     ColumnLayout {
  8.         anchors.fill: parent
  9.         Slider {
  10.             id: slider
  11.             from: 0
  12.             to: 100
  13.             Layout.fillWidth: true
  14.  
  15.             Binding on value {
  16.                 when: spinBox.pressed
  17.                 value: spinBox.value
  18.             }
  19.             Binding on value {
  20.                 when: dial.pressed
  21.                 value: dial.value
  22.             }
  23.         }
  24.         SpinBox {
  25.             id: spinBox
  26.             from: slider.from
  27.             to: slider.to
  28.             Layout.fillWidth: true
  29.  
  30.             Binding on value {
  31.                 when: slider.pressed
  32.                 value: slider.value
  33.             }
  34.             Binding on value {
  35.                 when: dial.pressed
  36.                 value: dial.value
  37.             }
  38.         }
  39.         Dial {
  40.             id: dial
  41.             from: slider.from
  42.             to: slider.to
  43.             Layout.fillWidth: true
  44.  
  45.             Binding on value {
  46.                 when: slider.pressed
  47.                 value: slider.value
  48.             }
  49.             Binding on value {
  50.                 when: spinBox.pressed
  51.                 value: spinBox.value
  52.             }
  53.         }
  54.     }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement