Hi David,

thanks for the quick reply!

On Wed, 2010-11-10 at 00:41 +0100, david.la...@nokia.com wrote:
> At present the best way to do this would be to subclass QGraphicsGeoMap and 
> override the event handlers for the mouse.  The MapViewer example does this 
> if you want a starting point.

Ok I see. Then I'll create a sub class of QGraphicsGeoMap that handles
my POIs and then I'll try to expose that to QML. Hope it will work :)

> Once you have the position of the mouse click you can use 
> QGraphicsGeoMap::objectsAtScreenPosition to work out if your POI was clicked.
> 
> Some circumstances have changed a little since we decided to do behaviour 
> modification through overriding event handlers - we're currently wondering if 
> there's a sensible way to have platform-map-default-behaviour out of the box 
> (while still being customizable for those who need it).  If we can do that in 
> a BC manner we'll put it on our list.
> 
> As well as this, we'll most likely have both map wide and per object mouse 
> handling in the final Maps QML - as long as I can cobble together the 
> requisite magic :)

That would be great, I hope you'll find the needed magic somewhere :)

Thanks for the help!
Conny


_______________________________________________
Qt-mobility-feedback mailing list
Qt-mobility-feedback@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback

Reply via email to