Hello,
I'm using QgsLayoutItemLabel in a print layout. Everything works fine but
I'd like some of the texts to have a solid background. I tried the solution
posted at
https://gis.stackexchange.com/questions/424164/how-to-make-backgrounds-white-for-qgslayoutitems-in-qgis-python-console
by adding the lines:
custom_text.setBackgroundEnabled(True)
custom_text.setBackgroundColor(QColor(Qt.black))
This didn't make any difference, which is understandable as the user's
guide doesn't include these methods among those of QgsLayoutItemLabel. I
really don't know if the post is just wrong (the final comment suggests
that the proposed solution worked) or if setBackgroundEnabled has been
deprecated. Any thoughts on whether this feature was included or will be
included in future versions?
Thanks.
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to