Customizing qml ListView look
Hi,
I'm trying to customize the look of a list in QML. Everything is done except one annoying detail. I don't know how to change the default blue gradient on pressed item. Not the highlight for the current item. The default blue gradient that appears when you click/tap an item.
Sorry for the bad description but, I have no idea how to call that thing in english.
Any ideas on how to customize that blue gradient?
Re: Customizing qml ListView look
Which platform(s) are you developing for? Are you using your own delegate in the ListView?
Br,
Villep
Re: Customizing qml ListView look
I'm developing for Symbian Anna/Belle.
At the moment I solved the problem by avoiding the use of ListItem. I used an Item then added MouseArea to capture actions and implemented custom graphic change.
But still, would be nice to know how to change ListItem.
Re: Customizing qml ListView look
Unfortunately there is no easy way to change the ListItem pressed graphics. Easiest way is to do what you already did, implement your own delegate and use a MouseArea combined with onPressed, onReleased and onCanceled to handle the changes in the 'pressed' highlight.
Br,
Villep
Re: Customizing qml ListView look
Thanks. At least I know I used the best possible solution. Plus, should work on meego without modification also :)