QGIS QgsLayerTreeGroup signal "currentLayerChanged"?

المشرف العام

Administrator
طاقم الإدارة
In a pyqgis context, I use the "currentLayerChanged(QgsMapLayer *)" signal of the QgisInterface class to do something when the current layer is changed, but I need now to do the same when I select a group, not a layer. The class QgsLayerTreeGroup derives from QgsLayerTreeNode who has signals reflecting a change in structure, or a change in active/inactive and expanded/collapsed, but no selection signal.Is there a way to do that ?

Thanks



أكثر...
 
أعلى