Skip to main content
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Source Link
Jhon Galindo
  • 928
  • 1
  • 7
  • 15

Add QGSExpression to QGraphicsItem in Layout using PyQGIS

I would like to add and modify and expression for Opacity in a QGraphicsLineItem

when I have the item QGraphicsLineItem, it not have a variable to modify the opacity expression

Code to get the item:

QgsProject.instance().layoutManager().layouts()[0].items()[0]