Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Android do not detect the onLeave signal of mouseArea(Qt5.2)

$
0
0
mac OS X 10.8.5 Qt5.2 tried api 10,14,15,19 compile with armeabi import QtQuick 2.0   Rectangle {     width: 360     height: 360       MouseArea {         id: mouseArea           property bool isEnter: false           anchors.fill: parent         hoverEnabled: true           onEntered: {             //console.log("enter")             mouseArea.isEnter = true         }           onExited: {             //console.log("exit")             mouseArea.isEnter = false         }     }       Rectangle{         id: selected         anchors.fill: parent         color: mouseArea.isEnter ? Qt.lighter("blue") : "white"         //visible: styleData.selected           SequentialAnimation {             running: mouseArea.isEnter; loops: Animation.Infinite             NumberAnimation { target:selected; property: "opacity"; to: 1.0; duration: 500}             NumberAnimation { target:selected; property: "opacity"; to: 0.5; duration: 500}         }     } } The code work perfectly under mac, but not on android Do anyone have the same issue? Any workaround could deal with it? Thanks

Viewing all articles
Browse latest Browse all 13965

Trending Articles