import com.jolla.settings 1.0 Rectangle { id: rect anchors.fill: parent color: '#000000' Settings { //hash this out and the code works but won't save last color created. id: settings property alias color: rect.color } MouseArea { anchors.fill: parent onClicked: rect.color = Qt.hsla(Math.random(), 0.5, 0.5, 1.0); } } }