[Development] Pointer Handlers will be Tech Preview in 5.10
J-P Nurmi
jpnurmi at qt.io
Thu Sep 28 13:36:10 CEST 2017
> On 28 Sep 2017, at 13:07, Tor Arne Vestbø <Tor.arne.Vestbo at qt.io> wrote:
>
> On 28/09/2017 13:05, Tor Arne Vestbø wrote:
>> If we can't have a generic GestureRecognizer type with dynamic recognizer behavior based on which handler callback is bound, then it should be TapGestureRecognizer, DragGestureRecognizer, etc.
>
> Or if we want to follow the existing naming of MouseArea and TouchArea, perhaps GestureArea, with TapGestureArea, DragGestureArea, etc
>
> tor arne
I would prefer attached properties and signals. Similarly to Keys.onPressed. Attaching onTapped from the outside of a component would be similar to overriding an event handler in C++. There would be a single attached object instance with multiple signal handlers. They objects would not be piling up like FooAreas and BarHandlers do.
--
J-P Nurmi
More information about the Development
mailing list