[Interest] [Development] Nested Mousearea don't pass events
Matteo Brichese
mbrichese at came.it
Tue May 21 08:45:04 CEST 2013
It's not possible to use two mouse area with propagateComposedEvents because even in that case I will have two event on double click:
1. Single click on the upper area (or maybe two single click)
2. Double click on the lower area
By now the only solution is with a timer for the single click event.
---
Matteo Brichese
Software Engineer
mbrichese at came.it
Came Cancelli Automatici S.p.A.
www.came.com
________________________________________
Da: Rutledge Shawn [Shawn.Rutledge at digia.com]
Inviato: martedì 21 maggio 2013 8.34
A: Matteo Brichese
Cc: interest at qt-project.org Interest
Oggetto: Re: [Development] Nested Mousearea don't pass events
On 20 May 2013, at 4:36 PM, Matteo Brichese wrote:
> I've solved it in my code with a Timer.
It's probably more efficient to go back to using two MouseAreas and propagateComposedEvents as documented in the MouseArea docs.
Not being able to distinguish clicked from doubleClicked within one MA is inconvenient, but I suppose the alternative would be for Qt to internally use a timer, which would slow down the clicks.
More information about the Interest
mailing list