[Interest] Superposed QmlMouseArea with hoveredEnabled

Jérôme Godbout jerome at bodycad.com
Wed Mar 11 16:08:01 CET 2015


Just a note on the MouseArea for AItem, I tried both
preventStealing: true
propagateComposedEvents: true

Without much success

On Wed, Mar 11, 2015 at 10:57 AM, Jérôme Godbout <jerome at bodycad.com> wrote:

> Hi,
> I'm running into multiple problems with QmlMouseArea when superposed to
> each other (running with Qt 5.3.0).
>
> The mouse area under containsMouse get stick to true and mouseX, mouseY
> are incorrect, click does not always (sometime does and sometime don't) get
> through.
>
> Here's a simple explain.
>
> AItem
> {
>    BItem { ... MouseArea { hoveredEnabled: true; ...} }
>    MouseArea { hoveredEnabled: true; z: 10; ...}
> }
>
> BItem is it's own component with it's own behavior.
>
> What is the proper way to achieve this without running into a nightmare of
> knowing where the Component will be used and still work for all
> application? Is that a forbidden use case or just a limitation?  Is the
> mouse area behavior fix in 5.4 (maybe the mouseArea scroll wheel bug
> introduced in 5.3.1 would be a lesser problem then this to work with and we
> could update anyway). MouseArea feel so broken with event accepted not so
> much working.
>
> Thanks,
> Jerome
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150311/2f211115/attachment.html>


More information about the Interest mailing list