> On 28 Sep 2017, at 13:07, Tor Arne Vestbø <[email protected]> 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 _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
