Oh you're right, my mistake. Here is a slightly modified version of the
function that relies on the QgsLayerTree instead of the QgsCanvas. This one
won't remove layers that are only unchecked in the layer tree.
def remove_odd_layers():
project = QgsProject.instance()
project_layers = proje
That seems to be working. Thanx a lot, Yoann!!!
Before running the function, you have to switch on in the layer dialog
all the layers you want to keep, because otherwise the function kills
all layers that are not visible. But after doing that, I got the result
I wanted.
That helped me a lot!
I found mention of the Layer Styling Panel in the docs:
https://docs.qgis.org/2.18/en/docs/user_manual/introduction/general_tools.html#layer-styling-panel
I have not figured out how to open it yet. I suspect
it has been replaced by the Style Manager:
Settings - Style Manager
But that is specu
I had the exact same problem some time ago. The layers are present in the
QgsProject, but not added to the QgsCanvas, so they don't appear in the
Layer Panel but the entry is there in the Layer Styling Panel.
You can use PyQGIS to solve it
Here is a simple function that iters over the layers in the
So I gather you are not talking about layer properties
described on this webpage:
https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/vector_properties.html
Can you find what you are talking about in the help files?
Or maybe record a short desktop session with Kazam on Linux
o
I got a problem with layers that are displayed in the layer design
dialog ("Layergestaltung" in German) but not in the layer window itself.
I would like to delete these layers but this is not possible. I opened
the project in QGIS 2.18 and in 3.10 and it happens in both versions.
Can anybody he