[Qgis-developer] Referencing QgsComposerAttributeTable from a Print Composer Template

2015-05-28 Thread Jakob Lanstorp
When referencing a QgsComposerAttributeTable from a Print Composer template like this: composerView = composerList[0] composition = composerView.composition() attrtable = composition.getComposerItemById('MyComposerAttributeTable') I get a class 'qgis._core.QgsComposerFrame' returned in

Re: [Qgis-developer] Referencing QgsComposerAttributeTable from a Print Composer Template

2015-05-28 Thread Nyall Dawson
On 28 May 2015 at 21:08, Jakob Lanstorp jlanst...@gmail.com wrote: When referencing a QgsComposerAttributeTable from a Print Composer template like this: composerView = composerList[0] composition = composerView.composition() attrtable =

Re: [Qgis-developer] Referencing QgsComposerAttributeTable from a Print Composer Template

2015-05-28 Thread Jakob Lanstorp
Thanks for the documentation. It's working: attrtable = composition.getComposerItemById('MyComposerAttributeTable').multiFrame() returns a QgsComposerAttributeTable Jakob - Jakob Lanstorp -- View this message in context: