Re: [QGIS-Developer] Does QgsProject.instance().createEmbeddedGroup() work? (Solved: yes it does)

2022-09-19 Thread Alister Hood via QGIS-Developer
Ah, sorry. I misunderstood what it does - I was thinking I could specify an arbitrary groupName which it would create and load the layers in projectFilePath into. groupName is actually meant to be an existing group in projectFilePath, and it loads that. Thanks. > > Date: Mon, 19 Sep 2022 09:08:

Re: [QGIS-Developer] Does QgsProject.instance().createEmbeddedGroup() work?

2022-09-19 Thread WhereGroup
Hi Alister, https://qgis.org/pyqgis/master/core/QgsProject.html#qgis.core.QgsProject.createEmbeddedGroup and https://api.qgis.org/api/classQgsProject.html#ad2e059da29ebfc32096367abb78da46c say it should return a QgsLayerTreeGroup so I guess it is broken, at least documentation-wise. https:/