How to dynamically add map objects to QML MAP element? Or how to create customised Map widget?
-
-
Hi Conny,
I resolve issue. I'm gettin mouse events in simulator aswell.
Do you maybe know if is possible to add mapObject to the map so that onclick event can be handled?
Somehow extend QGeoMapObject?Unfortunatelly method mapObjectsAtScreenPosition(lastPos) does not work on devices. I'm retreiving empty objects lists.
I have latest Qt SDK 1.1.2 and usign Qt Mobility 1.1
Many Thanks for your help
-
Yes you're right. Actually I've reported that bug. Unfortunately I don't know a way to get the mouse events on a devices with QtM < 1.2. I'm also waiting that QtM 1.2 will finally be available for devices.
On Maemo5 I've tested it with QtM 1.2 and it's actually working. On Symbian and for Ovi, we still have to wait :(
-
Nice! I have also decided to give qml a try and of course are running into the same issues. I have started to make a minimal demo app from conny's example and would like to setup a wiki page or similar as i think we should document this a little bit, so others can re-use this.
-
Ok, "here":http://wiki.meego.com/QML/QGraphicsGeoMap is the wiki page. Please contribute your findings and let's try to make this into a small complete guide for this. I e.g. found that the map doesn't scale when the window size changes.