aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlproperty/data/bindToNonQObjectTarget.qml
blob: d8a06aa5f95b57e56cce35c2244ccc06075803e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick

Item {
  id: top;
  visible:true;
  width:300;
  height:300
  Text {
    id: text
    width: 30; height: 30
    text: "1234.56"
    font.bold: true
    Binding {
      target: text.font // which is not a QObject, so can't use it as a binding target
      property: 'bold'
      value: false;
      when: width < 30
    }
  }
}