I am trying to do nested properties like \'font.family\' or \'anchors.fill\', but I cannot initialize them in normal way because it prints \'Cannot assign to non-existent pr
This may not be the right way. But this works
MyButtonStyling.qml
import QtQml 2.1
QtObject
{
property alias background: _obj_background
QtObject
{
id: _obj_background
property color pressed: "#CCCCCC"
property color enabled: "#666666"
property color disabled: "#555555"
}
}
Now using background.enabled: "#1B2E0A" in main.qml works.