Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.9.2, 6.0, 6.1, 5.15
Description
Define IconButton component:
import QtQuick 2.0
MouseArea {
property alias icon: icon
Image {
id: icon
property string custom
}
}
You can access aliased object's properties when they have been declared in C++:
IconButton {
icon.source: "icon.png"
}
But not when the object's property has been declared in QML.
Executing
IconButton {
icon.custom: "Value"
}
results in error "Cannot assign to non-existent property "custom".