[Solved] ListView -- Change color of current item text when moving to new item

  • Hi,

    Is there anyway to gain access to my delegates text color and change it when i move from one item to the next in my ListView?


  • Hi,

    I developed my delegate this way to accomplish it ...
    Component {
    id: categoryDelegate

    Text {
    id: delText
    x: 25;
    color: ListView.isCurrentItem ? "white" : "red"
    text: name;
    font.family: openSansReg.name
    font.pointSize: 36
    Behavior on color { ColorAnimation {duration: 200 }}

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.