[Interest] Qt 5.7 QuickControls 2 are not multitouch??

Jean-Michaël Celerier jeanmichael.celerier at gmail.com
Mon May 1 12:15:26 CEST 2017


> You can reimplement QQuickItem::touchEvent() to handle touch events. See
QTouchEvent docs for the details.

Thanks. I guess there's not a similar way if one wants to stay in the QML
realm ?

Best
Jean-Michaël



On Mon, May 1, 2017 at 8:24 AM, J-P Nurmi <jpnurmi at qt.io> wrote:

> > On 1 May 2017, at 01:31, Jean-Michaël Celerier <
> jeanmichael.celerier at gmail.com> wrote:
> >
> > Bump.
> >
> > Even if Qt Quick Controls 2.0 are apparently gaining this feature in
> 5.9.0, how would one go when writing custom QQuickItem, if multiple
> distinct items have to be able to receive touch events simultaneously ?
>
> Hi,
>
> You can reimplement QQuickItem::touchEvent() to handle touch events. See
> QTouchEvent docs for the details.
>
> - http://doc.qt.io/qt-5/qquickitem.html#touchEvent
> - http://doc.qt.io/qt-5/qtouchevent.html
>
> PS. Unlike for QWidgets and QGraphicsItems, there is no need to explicitly
> enable touch events for QQuickItems.
>
> --
> J-P Nurmi
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170501/a67ccfa0/attachment.html>


More information about the Interest mailing list