Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
-
None
Description
For example:
// DelegateWithAlias.qml
MyDelegate {
required alias string text
}
This would actually produce a property called "text" and would not require a value to be assigned, but rather a retroactive alias to be established on it. The following would fulfill such a thing:
DelegateWithAlias { id: self alias text: self.objectName }
However, manually fulfilling required aliases would be rare. The main application would be delegates for views. Views would automatically recognize required aliases the same way they recognize required properties, and establish two-way bindings into the model data. This way we'd be able to write model data from delegates.