The assignment is evaluated everytime any of the properties taking place in the predicate are changed (by means of the Q_PROPERTY(... NOTIFY signalX)
).
(每当谓词中发生的任何属性发生更改时,都将评估赋值(通过Q_PROPERTY(... NOTIFY signalX)
)。)
In your example this can be backend
or property
. (在您的示例中,这可以是backend
或property
。)
The PropertyChanges
in your example will do the same, it will get evaluated every time any of the properties changes.
(您的示例中的PropertyChanges
会执行相同的操作,每次任何属性更改时都会对其进行评估。)
If you assign true
to the explicit
property, it will be a once-off evaluation, the moment the state changes. (如果将true
分配给explicit
属性,则状态更改时将是一次评估。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…