Skip to content

Use custom MarbleDemoItem to enable pinch gesture on map

While trying the marbleQuick2 example, the pinch to zoom feature did not work and I got this output:

qrc:/main.qml:20: TypeError: Property 'handlePinchStart' of object Marble::MarbleQuickItem(0x495acdc0) is not a function
qrc:/main.qml:21: TypeError: Property 'handlePinchUpdate' of object Marble::MarbleQuickItem(0x495acdc0) is not a function
qrc:/main.qml:21: TypeError: Property 'handlePinchUpdate' of object Marble::MarbleQuickItem(0x495acdc0) is not a function
qrc:/main.qml:21: TypeError: Property 'handlePinchUpdate' of object Marble::MarbleQuickItem(0x495acdc0) is not a function
qrc:/main.qml:21: TypeError: Type error

It seems to me that the qml is not loading the custom Item defining the pinch related functions. So I have added the line to register it and use it in the qml.

But, by looking at the git history, I have some doubts and I might have missed something but it seems it was working as it is.

Merge request reports