Hover
Solved
QML and Qt Quick
-
Can we hover a image, like there is image and when mouse pointer goes over that image, the image color should change, like a icon.
-
Hi
You could apply an effect to it
http://doc.qt.io/qt-5/qtgraphicaleffects-qmlmodule.htmlbut i wonder what you mean by color change like icon.
-
out of the top of my head, -> untested
Item{ property string sourceN: "imgsource.png" property string sourceO: "OtherSource.png" Image{ id: img anchors.fill:parent source: sourceN } MouseArea{ id:mAre anchors.fill: parent hoverEnabled: true onEntered: img.source = sourceO onExited: img.source = sourceN } }