Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
5.14.2
-
None
-
-
316a120f37982db9f3062ac1e094d92da4e356d7
Description
In Qt 5.14, the required parameter `restoreMode` was added to the `Binding` type. This makes all code that uses `Binding` print a warning. Warnings in our code causes exceptions to be thrown. Was this change an intentional source compatibility breakage?:
file:///[...].qml:409:17: QML Binding: Not restoring previous value because restoreMode has not been set.
Here's how to reproduce (it seems like the normal way to use Binding):
Rectangle { id: rrr Binding { target: rrr property: "color" value: "red" when: foo } }
As there is no preprocessor in QML, code that needs to work with both 5.13 and 5.14, (e.g., during porting,) needs to make a new type, (e.g., UnbrokenBinding,) and based on Qt versions, selectively register either of the two implementations.
Attachments
Issue Links
- resulted from
-
QTBUG-78566 Binding QML Type does not warn on qt.qml.binding.removal
- Closed