How to change the group icon in legend via Python in QGIS 2.6? At version 1.x I did it this way:

self.legendTree = self.iface.mainWindow().findChild(QDockWidget,"Legend").findChild(QTreeWidget)
  • Why do you want to change it? – Nathan W Feb 8 '15 at 5:34
  • 1
    I would want that group created by plugin differs from the group created by man. ;) – dimamix Feb 8 '15 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.