As I now understand it there is no easy way to recognize gestures inside the c++ part of a Qt Quick 'QQuickPaintedItem' inherited class, is that correct?
I need both pan and pinch in my c++ class so if i dont want to write my own recognition code should I then inherit my class from both 'QQuickPaintedItem', PinchArea and Flickable? that doesn't seem right? (besides that they are declared in private header files like qquickpincharea_p.h)
Finally , I can not find any way to fix with QQuickPaintedItem. I just changed to use QQuickItem.
Hi, thank you for your response. Since you used QQuickItem instead, did you used updatePaintNode() in painting and didn't used QPainter?
Can you please provide me a simple code in implementing QQuickItem?
Actually, I tried creating rectangles using QSGGoemetryNode however i can't find any example on how to draw text using QSG without using QPainter.
Sorry i'm still new to integrating c++ in QML. TIA.
Usually you call the base class implementation of a method to continue the normal flow of execution but do something specific to your class in addition. You don't call the base class implementation when you want to handle things completely in the subclass. This isn't specific to the mouse events.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.