Hi David,

On Sun, 2010-11-21 at 23:59 +0100, [email protected] wrote:
> Hi,
> 
> >     QList<QGeoMapObject*> objects =
> >             mapObjectsAtScreenPosition(event->screenPos());
> 
> It might be worth trying event->pos() instead of event->screenPos().  Let me 
> know how that goes.

Great! That did the trick, now everything is working fine. Thanks a lot!

> > There are a couple of problems:
> >  * Using QGeoMapCircleObject, the area where an object is found is much
> > smaller than the graphical representation of that circle. Also it looks
> > like it's affected by zooming.
> > 
> >  * Using QGeoMapPixmapObject, I can click as much as I want and never
> > is
> > an object found.
> 
> I haven't seen either of these before - hopefully it's coming from the 
> difference between pos() and screenPos().  Let me know and I'll update the 
> documentation to reflect that (apparently significant difference).

Jup, not exactly sure what the difference is, but pos() is the right
one :)

> >  * Using a QGeoMapGroupObject containing a QGeoMapCircleObject and a
> > QGeoMapPixmapObject, sometimes the pixmap is found, sometimes the
> > circle, sometimes both. Never is the group object found. I would expect
> > the group object to be found, not the individual child objects.
> 
> The intent of the group object is solely to group objects - for instance, 
> when a user wants to add a lot of landmark pixmap objects to the map with the 
> ability to remove them all quickly later on.  With that as the main intent 
> I'm not sure it makes sense for the group to be clickable.

Well, that's, of course, also a valid point. In my case, I'm painting
POIs on the map. Each POI consists of a circle, a pixmap and text. I
thought I could group them together to simplify adding, removing and
clicking. However, I guess, I can work around this by manually combining
the mouse events. Or by adding an invisible background object to that
group and only use that for clicking.

Still, I think it should at least go into the documentation. My
assumption was that I'll only find the group object and in case I'm
interested in the children of this group, I would use something like
group.children() to access them.

Anyways, thanks a lot for you help!
Conny


_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback

Reply via email to