[Qgis-user] legend.sizeWithUnits() not working properley

Asim al-sofi asim56 at gmail.com
Tue Mar 25 04:38:39 PDT 2025


Hi all
Iam trying to get the size of a QgsLayoutItemLegend item using
legend.sizeWithUnits(). However, I always get the following answer:
<QgsLayoutSize: 0 x 0 mm > <QgsLayoutPoint: 0, 0 mm >
but when I run it separately, then I get the correct answer.
Any ideas how this comes and how to tackle this problem?

Thanks
Asim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250325/b856b10e/attachment.htm>


More information about the QGIS-User mailing list