QgsLayoutTableStyle class

Styling option for a composer table cell.

Constructors, destructors, conversion operators

QgsLayoutTableStyle() defaulted
Constructor for QgsLayoutTableStyle.

Public functions

auto readXml(const QDomElement& styleElem) -> bool
Reads the style's properties from XML.
auto writeXml(QDomElement& styleElem, QDomDocument& doc) const -> bool
Writes the style's properties to XML for storage.

Public variables

QColor cellBackgroundColor
Cell background color.
bool enabled
Whether the styling option is enabled.

Function documentation

bool QgsLayoutTableStyle::readXml(const QDomElement& styleElem)

Reads the style's properties from XML.

Parameters
styleElem a QDomElement holding the style's desired properties.

bool QgsLayoutTableStyle::writeXml(QDomElement& styleElem, QDomDocument& doc) const

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.