[Interest] What is the minimum required steps to extend a QQuickItem in C++ and make receive the touch events?

Rutledge Shawn Shawn.Rutledge at theqtcompany.com
Thu Dec 4 11:05:11 CET 2014

On 4 Dec 2014, at 10:53, Nuno Santos <nunosantos at imaginando.pt> wrote:

> Hi,
> I want to implement a custom QQuickItem in C++ for enhanced performance rather than having a complex Qml component. 
> I want to received the touch events but overriding touchEvent doesn’t seem to be enough.
> What am I missing?

Which platform?  If Linux, we need to make sure Qt can really get touch events from your touchscreen driver.  Does PinchArea or MultiPointTouchArea already work for you?

If you’re using OSX with the trackpad, touch has to be enabled explicitly.

More information about the Interest mailing list