Subgroup: Layout

Class: QgsLayoutTableStyle

class qgis.core.QgsLayoutTableStyle

Bases: sip.wrapper

Constructor for QgsLayoutTableStyle

QgsLayoutTableStyle(QgsLayoutTableStyle)

Styling option for a composer table cell

New in version 3.0: Methods

readXml Reads the style’s properties from XML.
writeXml Writes the style’s properties to XML for storage.

Signals

Attributes

qgis.core.QgsLayoutTableStyle.cellBackgroundColor
qgis.core.QgsLayoutTableStyle.enabled
cellBackgroundColor
enabled
readXml(self, styleElem: QDomElement) → bool

Reads the style’s properties from XML.

Parameters:styleElem – a QDomElement holding the style’s desired properties.

See also

writeXml()

writeXml(self, styleElem: QDomElement, doc: QDomDocument) → bool

Writes the style’s properties to XML for storage.

Parameters:
  • styleElem – an existing QDomElement in which to store the style’s properties.
  • doc – QDomDocument for the destination XML.

See also

readXml()