I have ListView item in QML with custom delegate:
Component{
id: contactDelegate
Item
{
id: wrapper;
width: 306; height: 40
FlipableImage
{
id: flipableImage
width: 30
height: 30
anchors.verticalCenter: wrapper.verticalCenter;
anchors.left: wrapper.left
anchors.leftMargin: 10
frontImage: serverIconSource;
backImage: "qrc:/images/resources/images/log.png";
}
Column
{
anchors.left: flipableImage.right
anchors.leftMargin: 10
Text
{
font.family: helveticaNeueBoldFont.name
font.pixelSize: 14
text: serverName;
}
Text
{
font.family: helveticaNeueFont.name
font.pixelSize: 14
text: serverLogin;
}
}
ConnectionStateImage
{
id: stateImage
state: "noState"
anchors.verticalCenter: parent.verticalCenter;
anchors.right: wrapper.right
anchors.rightMargin: 10
visible: itemMouseArea.containsMouse;
}
MouseArea
{
id: mouseArea;
anchors.fill: flipableImage
hoverEnabled: true;
z: 1
onEntered:
{
flipableImage.flipped = !flipableImage.flipped;
}
onExited:
{
flipableImage.flipped = !flipableImage.flipped;
}
}
}
}
on mouse hover flipableImage flipped. But I need to flip it by hand on event from model or from QDeclarativeView. How I can navigate to item in list view to change property of FlipableImage. It's not important for me to navigate from qml or from C++. Thx.