On 20 January 2015 at 13:48, Akbar Gumbira <[email protected]> wrote: > Hi, > > When we call getComposerItemById, it will return QgsComposerItem, which can > be many things: QgsComposerLabel, QgsComposerLegend, QgsComposerFrame, > QgsComposerPicture, etc. In case of the item is html frame, it will return > QgsComposerFrame. Unlike other items that you can get the component > directly, to get the QgsComposerHTML itself you should do: > > html_item = mycomp.getComposerItemById('myhtml') > composer_html = mycomp.getComposerHtmlByItem(html_item) >
Note that getComposerHtmlByItem is deprecated and will be removed at some stage. I'll implement a better solution to this issue. Nyall _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
