Re: [QGIS-Developer] Adding a panel to layer properties dialog from a python plugin

2018-10-18 Thread Denis Rouzaud
Hi again, Sorry I pasted the wrong links... This was for adding a page to global options. Here it is for layers. https://qgis.org/pyqgis/master/gui/other/QgisInterface.html#qgis.gui.QgisInterface.registerMapLayerConfigWidgetFactory https://qgis.org/pyqgis/master/gui/Map/QgsMapLayerConfigWidgetFa

Re: [QGIS-Developer] Adding a panel to layer properties dialog from a python plugin

2018-10-18 Thread Ricardo Filipe Soares Garcia da
Hi Denis, all I keep forgetting there are now also (totally cool) docs for the python API... I guess old habits die hard ;) >From your tip I guess the problem I'm facing is likely related to my class inheriting from the wrong base ( as I'm not using QgsOptionsPageWidget). I'll try it out later a

Re: [QGIS-Developer] Adding a panel to layer properties dialog from a python plugin

2018-10-17 Thread Denis Rouzaud
Hi Ricardo, For python, looking at the python API is always a good start ;) https://qgis.org/pyqgis/master/gui/other/QgisInterface.html#qgis.gui.QgisInterface.registerOptionsWidgetFactory This means you must give a QgsOptionsWidgetFactory https://qgis.org/pyqgis/master/gui/Options/QgsOptionsWidge

[QGIS-Developer] Adding a panel to layer properties dialog from a python plugin

2018-10-17 Thread Ricardo Filipe Soares Garcia da
Hi all The API docs for QgisInterface[1] mention the existence of a `registerMapLayerConfigWidgetFactory()` method which says in its documentation: > Register a new tab in the vector layer properties dialog. I've been trying to test this out and see if I can add a new panel to a layer's properti