blob: 767ca0c719de21f145adacf551bd012a2539afb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import QtQuick 2.9
Text {
visible: text && enabled
enabled: font.pixelSize === 25
font: enabled ? Qt.font({ "pixelSize": 25 }) : Qt.font({ "pixelSize": 50 })
Component.onCompleted: {
enabled = Qt.binding(function() { return visible; }); // replacement binding, not breaking
visible = true; // breaks visible binding
font.bold = true; // breaks font binding
}
}
|