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

Nuno Santos nunosantos at imaginando.pt
Thu Dec 4 11:07:52 CET 2014


Hi,

The target platforms are iOS and Android. On the computer I just want to be able to test with the mouse.

I didn’t realised it would need so many details.


> On 04 Dec 2014, at 10:05, Rutledge Shawn <Shawn.Rutledge at theqtcompany.com> wrote:
> 
> 
> 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