I have this QML code and its really straight forward but my problem is the onEntered and onExited does not work at all. I do not see anything wrong with the code and I feel it is a QtQuick bug !
import QtQuick 2.2
Rectangle {
width: 480
height: 320
Rectangle {
x: 30; y: 30
width: 300; height: 240
color: "lightsteelblue"
MouseArea {
anchors.fill: parent
hoverEnabled: true
onEntered: {
console.log('mouse over ya kbeer');
}
onExited: {
console.log('mouse out ya kbeer');
}
}
}
}
I use this as a qml component to be used in other place. am not sure but maybe because I have to embed them inside another Qt Quick items the mouse events does not reach this item because it has been cached by the parent am not sure of that !
Any suggestions and help is really appreciated !