[Solved] ListView -- Change color of current item text when moving to new item
QML and Qt Quick
2
Posts
1
Posters
879
Views
1
Watching
-
wrote on 1 Feb 2014, 21:23 last edited by
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
-
wrote on 1 Feb 2014, 22:12 last edited by
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 }}
}
}
@
1/2