View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#101
Originally Posted by Zeta View Post
Probably too late and maybe not that useful, I found that Qt has a dedicated C++ class to handle the "panning, flicking and pinch-to-zoom" gestures in their map object : http://doc.qt.io/qt-5/qml-qtlocation...sturearea.html

It is said to be available since QtLocation 5.0, but the minimal include is related to a 5.3 version (so maybe not available on Sailfish with its 5.2 QtLocation...).

Anyway, the code can be looked at here for the latest Qt5.9 and seems not that easy :
http://code.qt.io/cgit/qt/qtlocation...area.cpp?h=5.9

For older version, the path was a bit different :
http://code.qt.io/cgit/qt/qtlocation...area.cpp?h=5.3


Maybe some ideas in that code can help you...
Hi! I looked into it earlier and it was rather dependent on qtlocation implementation, hence my interest in pure QML solution. I hope we can get it working with QML and would avoid decoupling qquickgeomapgesturearea.cpp from the rest of qtlocation code.
 

The Following 2 Users Say Thank You to rinigus For This Useful Post: