Hi all,

I'm making an application with Marble using Qt (C++), and I'm having a bit of 
trouble working out how to turn off one of the default settings.

I'm adding a KMZ (which is just a zipped directory containing a PNG image, and 
a KML describing where the image should be displayed) to the map display with 
the following function:

ui->widget->model()->addGeoDataFile("file.kmz")

which works fine - the PNG appears in the correct spot. However, if you click 
the image overlaid on the map, a bounding box appears, which allows you to drag 
and resize the PNG overlay. I don't want this behaviour - clicking the image 
should do nothing. I cannot seem to find a way to turn this off.

I noticed that the GeoGraphicsItem has a flag named "ItemIsMovable", which 
seems to be what I'm after; however, I can't work out how to get to the 
GeoGraphicsItems contained in the map, from the widget (the MarbleMap contained 
in the MarbleWidget is private, and I can't find any other way "down the chain" 
to get access to the GeoGraphicsItem).

I feel like I'm missing something obvious here - any advice on this matter 
would be greatly appreciated.

Kind regards,
Nick

Reply via email to