I managed to get it working by using propagateComposedEvents instead
Item
{
MouseArea
{
id: mouseArea
anchors.fill: parent
onClicked: { console.log("yes") }
}
Flickable
{
id: main
contentHeight: 160
anchors.fill: parent
boundsBehavior: Flickable.StopAtBounds
interactive: parent.height > contentHeight ? false : true
MouseArea
{
anchors.fill: parent
propagateComposedEvents: true
onClicked: { mouse.accepted = false }
}
Rectangle
{
id: body
anchors {
left: parent.left
right: parent.right
}
}
}
}
Item
{
MouseArea
{
id: mouseArea
anchors.fill: parent
onClicked: { console.log("yes") }
}
Flickable
{
id: main
contentHeight: 160
anchors.fill: parent
boundsBehavior: Flickable.StopAtBounds
interactive: parent.height > contentHeight ? false : true
MouseArea
{
anchors.fill: parent
propagateComposedEvents: true
onClicked: { mouse.accepted = false }
}
Rectangle
{
id: body
anchors {
left: parent.left
right: parent.right
}
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks