Is it possible to change the gradient of an element in PropertyChanges?
I tried making a fancy button with in QML, but when I try to change the
gradient I get the error message
"PropertyChanges does not support creating state-specific objects."
Here's the relevant snippet:
State {
name: 'pressed'
PropertyChanges {
target: self
gradient: Gradient {
GradientStop { position: 0.0; color: 'gray' }
GradientStop { position: 1.0; color: 'lightgray' }
}
}
}
--
Pertti
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml