I'm trying to upgrade multiPrint plug in to QGIS3, but I'm newbie on python
My upgrade return an error like:
AttributeError: 'QgisInterface' object has no attribute 'activeComposers'
activeComposer no more exist in QGIS3
The code:
def populateComposerList(self):
#called to populate field list for WHERE statement
wdgt=self.dlg.composerList
wdgt.clear()
for cView in self.iface.activeComposers ():
item=QListWidgetItem()
item.setFlags(item.flags() | Qt.ItemIsUserCheckable)
item.setCheckState(Qt.Unchecked)
item.setText(cView.composerWindow().windowTitle())
wdgt.addItem(item)
wdgt.sortItems()