When does iface.mapCanvas().layers() get updated to the contents of QgsMapLayerRegistry.instance().mapLayers()?
Since the topic might be a bit cryptic, I'll try to explain where my problem is. I am currently developing a Qgis-plugin, where I am creating and adding some layers automatically, which I would like ...
In QGIS, if I close a project and try to open it a few days later I often get a message that says "Handle bad layers". This is very frustrating because when I open the project various layers will have ...
I'm working on a plugin that will aim to ensure that the following steps either "transparent" to the user with one click : Creating a table with predefined fields Record in this table in postgis, ...
I'm trying to fetch a feature's field value on Qgis, I use QgsFeature.attributeMap().value(cont int & key).toDouble() This works fine for committed features but it always returns " 0 " if the ...
I want to know how to keep a layer always on top of other layers! After adding a vector layer ( QgisInterface->addVectorLayer ), I want that layer to always be displayed on top of layers added later. ...