<html><head></head><body><div>
<div dir="auto" id="compose-body-wrapper"><div dir="auto"><div
dir="auto">Hello,</div><div dir="auto">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:</div><div dir="auto">
custom_text.setBackgroundEnabled(True)</div><div dir="auto">
custom_text.setBackgroundColor(QColor(Qt.black))</div><div dir="auto">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? </div><div
dir="auto">Thanks.</div><div><br></div></div></div>
</div></body></html>