Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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?
Brian
-
Hi,
I developed my delegate this way to accomplish it ...
@
Component {
id: categoryDelegateText {
id: delText
x: 25;
color: ListView.isCurrentItem ? "white" : "red"
text: name;
font.family: openSansReg.name
font.pointSize: 36
Behavior on color { ColorAnimation {duration: 200 }}
}
}
@