Fixed mouse events being processed by both controls and OpenGLView
This commit is contained in:
parent
b2a458b1f2
commit
625507e11d
2 changed files with 7 additions and 2 deletions
|
@ -4,6 +4,13 @@ Rectangle {
|
||||||
opacity: enabled ? 1 : 0
|
opacity: enabled ? 1 : 0
|
||||||
enabled: true
|
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 {
|
Behavior on opacity {
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
duration: 200
|
duration: 200
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 100
|
|
||||||
height: 62
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue