Unsolved all event(QEvent *event) in cpp file was be ignore by PinchArea for qml in my android
-
my class WorkArea : public QQuickPaintedItem~
But I find all event(QEvent *event) in cpp file was be ignore by PinchArea for qml in my android...
Does it mean I must write those code for Zoom in/out and Screen-Move?
I had write some code to control my object to move.
in my qml:
WorkArea{
id:mainWindow
objectName: "mainWin"
anchors.fill: parent
PinchArea{
anchors.fill: parent
pinch.target:mainWindow
pinch.minimumScale: 0.1
pinch.maximumScale: 10
pinch.dragAxis: Pinch.XAndYAxis
}
}
in my cpp file:
bool WorkArea::event(QEvent *event){
...
}