Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2006

    QGeoMapPixmapObject zooming in/out changes location on screen

    Good day
    I’m using a QGraphicsGeoMap inherited class, I’m able to add objects thru addMapObject function, but my problem is when zooming in/out the coordinates of that object is not reflected correctly on the new view.

        void MapWidget::addLocation(double lat, double lon/*, QString title, QString desc*/)
            QGeoCoordinate coord(lat, lon);
            QPixmap map = QPixmap(":/qml/mapExample/Location_pin.png");
            QGeoMapPixmapObject *pen = new QGeoMapPixmapObject(coord,QPoint(0,0),map);
    Whenever I zoom in or out, the location of this object is changed.

    What do you think is the problem and/or what is the soultion, I’ve attached a sample photos on how it looks

    I’m using this class with QML project as well.

    (If I use QML Map api, it works OK, but I need this for 5th edition devices as well)

    Notice the pin image and street 30 on the 3 images.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: QGeoMapPixmapObject zooming in/out changes location on screen

    its staying excatly as it is set, i.e. the left top corner stays in the set coordinate..

Similar Threads

  1. Zooming images in j2me
    By abhay_401 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2010-08-27, 16:44
  2. Zooming problem in FlashLite 2.1 with AS 2.0
    By vaan_dino in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2010-01-15, 22:53
  3. Image Zooming
    By somnathbanik in forum Symbian
    Replies: 8
    Last Post: 2009-08-26, 14:55
  4. Zooming in and Zooming out of Images
    By nicenouman in forum Mobile Java General
    Replies: 7
    Last Post: 2006-10-12, 07:06
  5. zooming in/out using j2me
    By kantibhudia in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-12-20, 13:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts