[Marble-devel] Re: MarbleWidget "loading completed" signal and Placemarks
earthwings at gentoo.org
Sun Jun 26 22:26:42 CEST 2011
On 26.06.2011 22:00, Radosław Wicik wrote:
> I'm Radoslaw Wicik and I'm involved in GSoC and I'm embedding Marble in
> to kexi, more on this project you can read at 
> And I need your help.
> Maps are loaded what takes some time, is there any signal that is
> emitted when loading is completed?
yes, when loading a map theme via MarbleWidget::setMapThemeId(QString),
MarbleModel::themeChanged(QString) will be emitted after loading it. You
can access the model instance that will emit the signal via the model()
method of MarbleWidget. The themeChanged signal will be emitted a bit
earlier than the final repaint of MarbleWidget though.
> Is there a way to display some place marks, maybe with label?
> Or rather, do you have some examples of how to use
You need to pass it the contents of a kml file, including the xml stuff.
Are you sure the method is enough for your needs? One of the limitations
will be that you cannot remove the placemarks later on.
Better use addGeoDataFile if you have .kml files on disk. If you prefer
a solution working in memory, I'd suggest using either the simple (in
#loc) customPaint() or, more flexible, creating your own layer as
described in . The formatting of the techbase wiki pages seems broken
at the moment, please have a look at the source of the pages (edit
button) to see the code.
> Marble-devel mailing list
> Marble-devel at kde.org
More information about the Marble-devel