Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Animate color in QML when C++ binding variable in modified

$
0
0
Hello everyone, Do you know how can I animate a Rectangle color property in QML when a C++ binding has been modified? my qml part look like this : Rectangle {       id    : power_cons_tile       // I want to animate the color when the new color is used       color : model.power_cons < 100 ? "#008A00" : "#E51400"       height: 85       width : 175       smooth: true       ...

Viewing all articles
Browse latest Browse all 4972

Trending Articles