Actually MouseArea.drag.filterChildren is just what I was looking for
(so you can implement option A in pure QML). Sorry for the noise.

- Daniel


On 09/25/2017 09:58 AM, Andrew Ialacci wrote:
I think you can chain the signal calls using signal.connect(otherSignal) and 
then set the drag target to null.

I had to implement something like this while writing an MDI windowing system. 
Admittedly though I did resort to moving 99% of the geometry manipulation and 
event handling to CPP.

I wish there was a way to subclass the QQC2 controls completely that allowed 
lower level access to each controls event system.



Sent from my iPhone

On Sep 25, 2017, at 9:28 AM, Daniel d'Andrada <[email protected]> 
wrote:

Hi All,

I wanna have the following (A):

Foo {
    Button {}
}

or (B):

Item {
    Button {}
    Foo {}
}

Where "Foo" is an item that is interested only in drag gestures. So when
one is performed it does its thing. It ignores clicks, letting them go
to the Button element inside/behind it.

So A is a QQuickItem::filtersChildMouseEvents way of doing things (like
Flickable), whereas B is a MouseArea::propagateComposedEvents approach.

B is not an option as QtQuick.Controls2 are not MouseArea based, so it
just won't work.

To implement Foo as in option A I would have to resort to C++. But I
would like a pure-QML solution for this. Is it possible?

Best regards,
Daniel


________________________________

This e-mail and any attachment(s) are intended only for the recipient(s) named 
above and others who have been specifically authorized to receive them. They 
may contain confidential information. If you are not the intended recipient, 
please do not read this email or its attachment(s). Furthermore, you are hereby 
notified that any dissemination, distribution or copying of this e-mail and any 
attachment(s) is strictly prohibited. If you have received this e-mail in 
error, please immediately notify the sender by replying to this e-mail and then 
delete this e-mail and any attachment(s) or copies thereof from your system. 
Thank you.
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest


________________________________

This e-mail and any attachment(s) are intended only for the recipient(s) named 
above and others who have been specifically authorized to receive them. They 
may contain confidential information. If you are not the intended recipient, 
please do not read this email or its attachment(s). Furthermore, you are hereby 
notified that any dissemination, distribution or copying of this e-mail and any 
attachment(s) is strictly prohibited. If you have received this e-mail in 
error, please immediately notify the sender by replying to this e-mail and then 
delete this e-mail and any attachment(s) or copies thereof from your system. 
Thank you.
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to