Fixed mouse events being processed by both controls and OpenGLView

This commit is contained in:
Michaël Lemaire 2015-08-24 00:53:24 +02:00
parent b2a458b1f2
commit 625507e11d
2 changed files with 7 additions and 2 deletions

View file

@ -4,6 +4,13 @@ Rectangle {
opacity: enabled ? 1 : 0
enabled: true
MouseArea {
// Used to prevent mouse events to fall down to the OpenGLView
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
onWheel: {}
}
Behavior on opacity {
PropertyAnimation {
duration: 200

View file

@ -1,6 +1,4 @@
import QtQuick 2.0
Rectangle {
width: 100
height: 62
}