Important: Please read the Qt Code of Conduct -

[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.pointSize: 36
    Behavior on color { ColorAnimation {duration: 200 }}

Log in to reply