1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
import QtQuick Window { width: 640 height: 480 visible: true title: 'Resolve my color type' Item { id: foo states: [ State { PropertyChanges { target: foo myColor: Qt.rgba(0.5, 0.5, 0.5, 0.16) } } ] property color myColor: 'black' } }