Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
Description
Similar to the concept Generalized group properties in Binding since Qt 6.3, I believe it would be helpful to provide the same feature to the Connections component.
I used to write foobarSignal.connect() rather than using a Connections component, because I think there is too much overhead to create extra Connections object just to handle one single signal of another object.
With generalized group properties, we could handle multiple signals from different (even dynamic) objects in a single Connections:
Window {
id: window
Loader {
id: loader
sourceComponent: Button {}
}
Connections {
ignoreUnknownSignals: true
window.onClosing: ...
loader.item.onClicked: ...
}
}