hi all. i was able to generate a legend when i was using QGIS 2.18 by QgsComposerLegend().Then i used to export it with help of QImage(). But now i use QGIS 3.10 and i have to use QgsPrintLayout() and QgsLayoutItemLegend() to generate legend and i export it via QgsLayoutExporter(). But i have some issue with that: 1. it exceeds or crops legend content. 2. i got below error message when i create more than one object of my class which has QgsPrintLayout() object : "RuntimeError: wrapped C/C++ object of type QgsPrintLayout has been deleted"
can you please guide me about this?
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
