Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10.1
-
-
2f4c131805f4009f42abe991e0f92f096bbc55fd (qt/qtdeclarative/5.14)
Description
Following signal handler works:
property real __private_property
on__Private_propertyChanged: console.log("__private_property", __private_property)
But if I create such signal handler with Connections element in QML component where the property hasn't been defined within the same component
Connections {
target: item
on__Private_propertyChanged: console.log("__private_property", __private_property)
}
the component loading fails in error
Cannot assign to non-existent property "on__Private_propertyChanged"
If both the property and Connections element have been defined within the same QML document there is no error. If property uses normal camelCase there is no error.
Attachments
For Gerrit Dashboard: QTBUG-82017 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
290054,4 | Fix QQmlProperty and Connections for properties starting with '_' | 5.14 | qt/qtdeclarative | Status: MERGED | +2 | 0 |